Pass munchkin cookie with Create/Update Leads REST call?

Grant_Booth
Level 10

Pass munchkin cookie with Create/Update Leads REST call?

Hello everyone,
I'd like to be able to track when a lead arrives at a page with munchkin on it from a third party email system, for example with their email address in a URL parameter of the link they clicked on in the email. These leads might not already exist in Marketo.
Then I want to take that email address and the cookie value created by Munchkin to create a new lead in Marketo.
Is it possible to pass the cookie value along with the Create/Update Leads call? Create/Update Leads » Marketo Developers

Or do I have to first send just the email address, and then once I get the lead id from in the response from that, do an Associate Lead call to attach the cookie value to the lead? Associate Lead » Marketo Developers 

I'd prefer to do it all with the Create/Update Leads call, rather than having to do multiple calls where I have to parse the response from the first call.

Tags (3)
3 REPLIES 3
SanfordWhiteman
Level 10 - Community Moderator

Re: Pass munchkin cookie with Create/Update Leads REST call?

Please, I'm begging you, don't use the REST API for this! It will only lead to pain.

All you need is a background form post. No muss, no fuss, no DoS.

Grant_Booth
Level 10

Re: Pass munchkin cookie with Create/Update Leads REST call?

Hi Sanford,
Thanks for the suggestion. Unfortunately, that will create a Fill Out Form activity whenever it's used, which I'd really prefer to avoid...what would you say is the next best option?

Grant

SanfordWhiteman
Level 10 - Community Moderator

Re: Pass munchkin cookie with Create/Update Leads REST call?

Next best (or really just as good) is the Munchkin API.  Create a microservice endpoint to which you pass an email address and get back a Munchkin hashcode, then use Munchkin.munchkinFunction('associateLead',...).