PHP Lead Capture - Not associating leads

Anonymous
Not applicable

PHP Lead Capture - Not associating leads

Hi all,

I have PHP code which is submitting a form (using cURL) to an existing Marketo form using the /index.php/leadCapture/save endpoint.

This is mostly working fine (it creates leads, records the form fill, they show up in the right smart lists), but it's not associating these leads with their existing page view activity. I'm submitting the _mkto_trk cookie as well, so I assumed this would automatically associate them.

When I look at the data Marketo stores for that form fill, I can see the following data was submitted:

mkto_trk: id:[xxx-xxx-xxx]&token:_mch-[url]-[number]-[another number]
Email: [email address]

This one is just a sign in form, so that's all the data I need (I've also done longer registration forms).

Can anybody help me figure out why this lead isn't associated to that tracking cookie's page views?

Thanks!


 
Tags (1)
2 REPLIES 2
Jep_Castelein2
Level 10

Re: PHP Lead Capture - Not associating leads

change the field name to _mkt_trk, confusingly, the form field name is different from the cookie name
Anonymous
Not applicable

Re: PHP Lead Capture - Not associating leads

I always try to draw out the associate lead JS call whenever I have the email address stored in any fashion. So on Login or form submissions, from a tracking cookie etc etc. 

http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/