SOLVED

Re: Get the lead ID in a Marketo landing page

Go to solution
Josh_Lake
Level 1

Get the lead ID in a Marketo landing page

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Kenny_Elkington
Marketo Employee

Re: Get the lead ID in a Marketo landing page

You can put the {{lead.ID}} token on the page.

View solution in original post

11 REPLIES 11
Kenny_Elkington
Marketo Employee

Re: Get the lead ID in a Marketo landing page

You can put the {{lead.ID}} token on the page.

Grégoire_Miche2
Level 10

Re: Get the lead ID in a Marketo landing page

That's a funny one, this token is not available from the token drop list, but that works.

Thx Kenny

-Greg

Kenny_Elkington
Marketo Employee

Re: Get the lead ID in a Marketo landing page

You're welcome, pretty strange that it's missing.

Josh_Lake
Level 1

Re: Get the lead ID in a Marketo landing page

I agree. Thanks for the answer!

Ari_Echt1
Level 5

Re: Get the lead ID in a Marketo landing page

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"?

Grégoire_Miche2
Level 10

Re: Get the lead ID in a Marketo landing page

Hi Ari,

Try it, but I fear it would not work.

-Greg

Kenny_Elkington
Marketo Employee

Re: Get the lead ID in a Marketo landing page

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?

Ari_Echt1
Level 5

Re: Get the lead ID in a Marketo landing page

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?

SanfordWhiteman
Level 10 - Community Moderator

Re: Get the lead ID in a Marketo landing page

Is it possible to do this on non-Marketo landing pages?  

Or only on pages served up by Marketo?