SOLVED

Get the lead ID in a Marketo landing page

Go to solution
Josh_Lake
Level 1

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
Kenny_Elkington
Marketo Employee

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

View solution in original post

11 REPLIES 11
Kenny_Elkington
Marketo Employee

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

Grégoire_Miche2
Level 10

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

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

Ari_Echt1
Level 5

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

SanfordWhiteman
Level 10 - Community Moderator

Like Kenny, I'm curious about what you're trying to accomplish here.  It almost sounds like pURLs (an existing feature -- see the docs -- though a problematic one).

Kenny_Elkington
Marketo Employee

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

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

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

Or only on pages served up by Marketo?

Ari_Echt1
Level 5

Thank you, Sanford.

Grégoire_Miche2
Level 10

Hi Ari,

Try it, but I fear it would not work.

-Greg

Josh_Lake
Level 1

I agree. Thanks for the answer!