Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

Phillip_Wild
Level 10

Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

We have accounts on our website where users can log in. It would be great to pass the login information back to Munchkin so they become a known user in Marketo and we track web visits. Since we don't use a whole lot of Marketo forms but Salesforce ones instead we miss out on a lot of this web tracking.

Thanks!

Phil

4 REPLIES 4
SanfordWhiteman
Level 10 - Community Moderator

Re: Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

I assume you also have the email address at the same point, yes? The Munchkin associateLead method can be used with emails. A background form post accomplishes the same thing.

There's no Munchkin method that keys on SFDC ID.

Phillip_Wild
Level 10

Re: Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

Hi Sanford

Fantastic. Are there any docs you could point me to which could help out? Our technical lead is after a little more info.

Thanks, Phil

SanfordWhiteman
Level 10 - Community Moderator

Re: Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

Munchkin API » Marketo Developers - look for associateLead.   You'll be generating a key (on your server, not in the browser!) and then outputting it to the browser so it can be used in the associateLead call to Marketo.  It works very well, although the drawback is it has no real-time success/failure confirmation: you have to look in the lead's Activity Log to confirm the anonymous lead was merged into a known record.

Grégoire_Miche2
Level 10

Re: Is there a Munchkin javascript API call we can to identify a user to Marketo (via SalesForce ID)?

Hi Phillip,

You may also use a hidden form posted in the background when the user logs in.

See Make a Marketo Form Submission in the background

On a more global note, replacing Saleforce forms as quickly as possible is strongly recommended. In addition to the tracking issue, salesforce web-to-lead forms have the big drawback to be unable to deduplicate leads and contacts.

-Greg