SOLVED

Re: Hide values in UTM parameters when using Token

Go to solution
Recho
Level 4

Hide values in UTM parameters when using Token

HI All,

 

We are trying to pass the field values to utm parameters using tokens and use those values to auto-populate the field values on a form that lives on non-landing page. Concern is when we use token it shows the actual value in URL which is visible to on user end.

 

How can we hide the values on user end but still be able to capture the field information to prefill the form.

 

For instance :firstname={{lead.First Name}}&lastname={{lead.Last Name}}&email={{Lead.Email Address}}

 

Regards

Ani

Tags (2)
1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Hide values in UTM parameters when using Token


How can we hide the values on user end but still be able to capture the field information to prefill the form.


Do the 2 pages have a private domain suffix in common? (i.e. pages.example.com and www.example.com have example.com in common). If so, you can use a cookie to persist the data, or if they’re exactly the same domain, you should use Local Storage.

 

Otherwise, the answer’s of course No, because they need to be in the URL. To have them be available from JavaScript on the next page, you must use a standard HTTP GET. (An HTTP POST would not expose them in the URL, but they also would not be readable to be used in Pre-Fill.)

 

Also, a very important note that you cannot simply embed {{lead.tokens}} - or any tokens - in query strings. They must be URL-encoded.

View solution in original post

3 REPLIES 3
Darshil_Shah1
Level 10 - Community Advisor + Adobe Champion

Re: Hide values in UTM parameters when using Token

Instead of passing PII for prefilling forms in the URL and trying to hide them from the end user (which still has inherent vulnerability as non-hidden PII in the URL), why don't you use Sandy’s DTO/DTP form fill approach that can prefill data on Marketo/external LPs? Check out Sandy’s post on form prefill here.

SanfordWhiteman
Level 10 - Community Moderator

Re: Hide values in UTM parameters when using Token


How can we hide the values on user end but still be able to capture the field information to prefill the form.


Do the 2 pages have a private domain suffix in common? (i.e. pages.example.com and www.example.com have example.com in common). If so, you can use a cookie to persist the data, or if they’re exactly the same domain, you should use Local Storage.

 

Otherwise, the answer’s of course No, because they need to be in the URL. To have them be available from JavaScript on the next page, you must use a standard HTTP GET. (An HTTP POST would not expose them in the URL, but they also would not be readable to be used in Pre-Fill.)

 

Also, a very important note that you cannot simply embed {{lead.tokens}} - or any tokens - in query strings. They must be URL-encoded.

Recho
Level 4

Re: Hide values in UTM parameters when using Token

Thank you for the response and yes private domain suffix in common but i am not sure how to create cookie and pass the field values.

Tokens are URL-encoded and for now we would let values to display in URL as time spam is very short to finish the project.