Tokens do not show up on Landing Pages | Community
Skip to main content
Level 4
August 29, 2019
Question

Tokens do not show up on Landing Pages

  • August 29, 2019
  • 1 reply
  • 5192 views

Hi all Marketo Ninjas,

Facing a strange issue, 

No Token values are showing up on landing pages, though they work in emails.

So we need to display the email address of the user on a landing page and are using the {{lead.Email Address:default=edit me}} token.

Any assistance on this is appreciated.

Thanks - Manish

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Chris_Wilcox
Level 8
August 29, 2019

Can you explain the use case? Is it within a form to prepopulate an email field? 

If so, is the form being embeded on a Marketo hosted landing page, or your own site?

Level 4
August 29, 2019

Hi Chris,

The token is in the body of the landing page populated using the rich text

editor. The use case is to show the user her/his email address before they

unsubscribe using a form beneath this text.

With Best Regards

Manish Khemani

Lead - Marketing Automation & Analytics

Tata Consultancy Services

Mailto: manish.khemani@tcs.com

Website: http://www.tcs.com

Chris_Wilcox
Level 8
August 29, 2019

Hey Manish,

I have good news and bad news. The good news is, this is the expected behavior of Marketo. Think about it, if you could just plop a token value onto the code of a landing page and get it to resolve the stored value, that's a pretty huge security flaw. Anyone could modify your page code and just swipe stored values from your database, not a great experience. 

Bad news is, you either have to change your form to incorporate the field into the form itself and accept the times the field will and won't prefill, or do a bit of dev work to get it working exactly as you currently have it designed.

So, here's the thing. If it's a Marketo hosted page and your goal is to show the person's email address to them before they unsubscribe, I would recommend simply adding email address as a field on your form, enabling prefill on that form  field in the form options in Marketo, and you're basically good to go. So long as you have the link tracked and the mkt_tok enabled for the unsubscribe link in your email assets, it will prefill as desired when a user lands on the page. Marketo used to ALWAYS prefill cookied users on landing pages, but back in June they "upgraded" prefill and removed this feature. Here's a good piece of documentation that shows when prefill will work (and when it won't) on a Marketo landing pages with the newer rules.

If this option isn't acceptable, you have to do some dev work to enable prefill all the time on your landing pages. The easiest way (which I myself use) is @Sanford Whiteman‌'s method which you can read about on his blog here. Basically, some simple-ish code work needed and you have to get a single javascript file hosted on your web server, but otherwise the implementation is all Marketo-based. The good news is, if you do this, you can drop the prefill code anywhere on your parent domain and form prefill will always work across your entire website, not just Marketo hosted pages. 

Hope this helps,

Chris