Pass munchkin cookie with Create/Update Leads REST call? | Community
Skip to main content
Grant_Booth
Level 9
March 30, 2016
Question

Pass munchkin cookie with Create/Update Leads REST call?

  • March 30, 2016
  • 1 reply
  • 1393 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
March 30, 2016

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 9
March 30, 2016

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
March 31, 2016

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',...).