double opt-in redirect with params

SOLVE
Highlighted
Occasional Contributor

Hello,

Not sure if this is the correct channel for this question, please excuse me if it is not.

 

I want to enable double opt-in and when the user clicks the confirmation link, I want to redirect to my site with his email property in the query string, or some way to identify the user on my site form. the form needs to submit some details to my site taken from Hubspot. So it is not a HubSpot form.

 

Any idea how to achieve this, or direct me to a better channel for this question?

Reply
0 Upvotes
2 Accepted solutions

Accepted Solutions
Community Manager

Hi @JosephWa,

 

You can add the email property in the subscription confirmation url by doing something like this:

 

<p><a href="{{ subscription_confirmation_url }}" rel=" noopener">{{ subscription_confirmation_url }}?email={{ contact.email }}</a></p> 

 

Adding the contact email personalize token as a query string.

Occasional Contributor

hi,

Thank you for the idea. it actually needs to be in the href attribute  and not in the name to work :

<p><a href="{{ subscription_confirmation_url }}?email={{ contact.email }}" rel=" noopener"> Confirm </a></p> 

I have tested and it is working great.

 

2 Replies 2
Community Manager

Hi @JosephWa,

 

You can add the email property in the subscription confirmation url by doing something like this:

 

<p><a href="{{ subscription_confirmation_url }}" rel=" noopener">{{ subscription_confirmation_url }}?email={{ contact.email }}</a></p> 

 

Adding the contact email personalize token as a query string.

Occasional Contributor

hi,

Thank you for the idea. it actually needs to be in the href attribute  and not in the name to work :

<p><a href="{{ subscription_confirmation_url }}?email={{ contact.email }}" rel=" noopener"> Confirm </a></p> 

I have tested and it is working great.