I am building a landing page in marketo and I need to get access to the lead ID value. Looking through the developer documentation it only explains methods of doing this if you're in a third party landing page through their rest API. I am hopeful that there is an easier way to get this value when it is a Marketo landing page.
Solved! Go to Solution.
You can put the {{lead.ID}} token on the page.
That's a funny one, this token is not available from the token drop list, but that works.
Thx Kenny
-Greg
You're welcome, pretty strange that it's missing.
I agree. Thanks for the answer!
Hi Kenny,
Thanks for sharing. I have a dumb follow-up question: where on the page would you put this token if you wanted it to appear in URL? Just paste that token value directly in "edit url setting"?
Hi Ari,
Try it, but I fear it would not work.
-Greg
Tokens aren't rendered in URLs since URLs are provided by the client. It would be impractical and not particularly useful for the server to render them and pass them back in the location header. What exactly are you trying to accomplish?
Thank you guys for the reply and sorry for the delayed response.
I didn't catch a notification.
So now I get how we can get the the {{lead.ID}} token on the page.
Is it possible to do this on non-Marketo landing pages? Or only on pages served up by Marketo?
Is it possible to do this on non-Marketo landing pages?
Or only on pages served up by Marketo?