Email address prefill on Marketo form on Marketo Landing Page | Community
Skip to main content
Lucas_Metherall
New Participant
April 7, 2021
Solved

Email address prefill on Marketo form on Marketo Landing Page

  • April 7, 2021
  • 2 replies
  • 6796 views

Hi all,

 

We have finally (finally!) set up Marketo landing pages with a useable subdomain, and I have built an unsubscribe form which sits on an unsubscribe landing page.

 

In my initial tests, the email address was pulling through when I clicked a link from a live email, but in recent tests it is not.

 

Questions:

- what's the deal?

- Does email prefill not work even if a lead clicks the link in an email and it goes to a MKTO landing page and MKTO form?

- Can lead.email address token be used in a field in a form? (I'm also searching community forum for that answer)

- Do I still need to add ?mkt_unsubscribe=1&mkt_tok=##MKT_TOK## to the end of the link?

 

Thanks,

Lucas

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

Does email prefill not work even if a lead clicks the link in an email and it goes to a MKTO landing page and MKTO form?

That's in fact the one situation in which Pre-Fill works out of the box!

 

However:

  • the link must include the mkt_tok query param, i.e. the either the link must be tracked or the mkt_tok needs to be deliberately added
  • Pre-Fill must be allowed at the global Admin level, the LP level, and the Form level
  • the mkt_tok eventually expires — but not for 6 months

 


- Can lead.email address token be used in a field in a form? (I'm also searching community forum for that answer)

Technically: No. I wouldn't use it because you can break the form completely if you have certain uncommon characters in the Email Address, and I'm a stickler for adhering to standards and not leaving any weird edge cases out there.

 

Practically: Yes. In 99.999% of real-world cases you will be fine because of the values expected for the particular field {{Lead.Email Address}},though certainly not for all lead fields.

 


- Do I still need to add ?mkt_unsubscribe=1&mkt_tok=##MKT_TOK## to the end of the link?

Not if it's a regular tracked link, that'll be added automatically.

2 replies

Katja_Keesom
Community Manager
April 7, 2021

One thing to be careful with in testing programs like this is your cookies. If you tested with more than one email address, you are likely to have collected more than one cookie on your device as well. This can cause Marketo to get confused on "who you are" resulting in the form no longer prefilling.

You can prevent this by either clearing your cookies between each test or run each test in an incognito browser session (don't forget to close your incognito windows and reopen a new session for each new test).

SanfordWhiteman
New Participant
April 7, 2021

Katja is right, the mkt_tok also must correspond to the already-associated lead, if there is one. A conflict will result in Pre-Fill being disabled.

 

(You could also use my cross-domain Pre-Fill JS library which is not subject to these restrictions.)

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
April 7, 2021

Does email prefill not work even if a lead clicks the link in an email and it goes to a MKTO landing page and MKTO form?

That's in fact the one situation in which Pre-Fill works out of the box!

 

However:

  • the link must include the mkt_tok query param, i.e. the either the link must be tracked or the mkt_tok needs to be deliberately added
  • Pre-Fill must be allowed at the global Admin level, the LP level, and the Form level
  • the mkt_tok eventually expires — but not for 6 months

 


- Can lead.email address token be used in a field in a form? (I'm also searching community forum for that answer)

Technically: No. I wouldn't use it because you can break the form completely if you have certain uncommon characters in the Email Address, and I'm a stickler for adhering to standards and not leaving any weird edge cases out there.

 

Practically: Yes. In 99.999% of real-world cases you will be fine because of the values expected for the particular field {{Lead.Email Address}},though certainly not for all lead fields.

 


- Do I still need to add ?mkt_unsubscribe=1&mkt_tok=##MKT_TOK## to the end of the link?

Not if it's a regular tracked link, that'll be added automatically.

Lucas_Metherall
New Participant
April 8, 2021

Thanks Sanford, appreciated.