This enables your recipients to confirm their subscription status directly from the email - e.g. for account creation emails.
You can also define which URL the contact should be taken to after clicking the double opt-in link, and have the option to add those contacts to a segment.
Link format
The format for double opt-in links is:
https://api.ometria.com/forms/confirm?profile={{profile.hash}}&account={{email.account_hash}}&next_url={{url}}
Add this link behind the subscription CTA in your email templates.
This link will automatically sign up every contact that clicks on it and redirect them to your homepage.
Redirecting the double opt-in link to a web page
Your double opt-in link will direct recipients to your homepage by default.
To redirect your recipients to a different page on your website, add &next_url=
to the end of the link, followed by the URL of your preferred page.
Example:
To take the recipient to https://www.yourbrand.com/blog/ add &next_url=https://www.yourbrand.com/blog/
to your double opt-in link:
https://api.ometria.com/forms/confirm?profile={{profile.hash}}&account={{email.account_hash}}&next_url=https://www.yourbrand.com/blog/
Redirecting the double opt-in link to your preferences centre
To redirect the email recipient to your preferences centre, you can use the shortcode string preferences after &next_url=
Example:
https://api.ometria.com/forms/confirm?profile={{profile.hash}}&account={{email.account_hash}}&next_url={{prefs}}
Adding contacts to a segment
To add recipients of your double opt-in link to a segment, first find the segment ID in Saved segments, then add &add_confirmed_to_lists=[segment ID]
to the end of your link.
Example:
To add the recipient to a segment with the ID 383, append &add_confirmed_to_lists=383
to your link: https://api.ometria.com/forms/confirm?profile={{profile.hash}}&account={{email.account_hash}}&next_url=preferences&add_confirmed_to_lists=383
Comments
0 comments
Please sign in to leave a comment.