Munchkin function to get lead id

Munchkin function to get lead id

It would be useful to have a munchkin function that returns the lead ID (and only this). Typically a 'leadID' munchkinFunction.

Although I understand it would cause a small security breach, this would be valuable as it would enable better google analytics integration, as it will enable the Lead ID GA dimension to be populated event for anonymous leads (see Integrating Google Analytics with Marketo ). Of course, this would only be possible for leadID, not for any personal information.

-Greg

7 Comments
Kenny_Elkington
Marketo Employee

What's wrong with using the Munchkin Cookie for this purpose?

SanfordWhiteman
Level 10 - Community Moderator

I mostly agree, although the 1:many lead:cookie relationship could complicate this (could require intermediate queries).

Greg, what is the output scenario? If you want people to drill down to a lead via a custom app, you can locate the lead via cookie. If you want to flip over to the Marketo UI and include the lead ID in the URL, that won't work with a cookie.

Grégoire_Miche2
Level 10

Hi Sanford Whiteman​,

The scenario would be to be able to populate Google Analytics JS with the leadID even on non marketo pages.

-Greg

SanfordWhiteman
Level 10 - Community Moderator

I've got the GA connection, but my point was that the Munchkin cookie may suffice for input (mostly because there is no alternative at present) if the output (display) side can lookup the lead ID, keying on the cookie.

That is, for any report you can pull from GA by cookie you could "join" the report against Marketo using the API to get IDs. Of course, this is very far from ideal. It would be nice to have the lead ID in hand.  I'm going to post soon about my external form prefill solution, which can be used for this purpose as well.

Grégoire_Miche2
Level 10

Thx Sanford Whiteman​,

Looking forward to it

-Greg

Grégoire_Miche2
Level 10

I gather that, with the removal of anonymous leads, this idea will never happen

-Greg

kh-lschutte
Community Manager
Status changed to: Open Ideas