SOLVED

Re: associateLead is not creating leads. How can I debug it?

Go to solution
Anonymous
Not applicable

associateLead is not creating leads. How can I debug it?

I'm using the associateLead JS API to send a lead to Marketo. No leads are created.

Is there a way to gain some insight into what is happening between when the request is sent to Marketo and when nothing happens?

I know the associateLead request is sent over but I wish there was a log or something I could examine to see what happened when Marketo received the lead and then did nothing with it.

As far as I can tell the code is correct. Marketo is initialized. I followed the instructions at (https://community.marketo.com/MarketoArticle?id=kA050000000Kyr7) and the troubleshooting steps at (https://community.marketo.com/MarketoArticle?id=kA050000000Kyqt&src=comm)

I used Fiddler to examine traffic sent to Marketo. Looks good to me. Here's what is sent:
mktoMunchkinFunction('associateLead', {Email: 'alexd0103b@example.com'}, '3374aac1f87a9889d245a2fb538a3d7750dd1a00')

GET /webevents/associateLead?_mchNc=1357246213615&_mchKy=3374aac1f87a9889d245a2fb538a3d7750dd1a00&_mchAtEmail=alexd0103b%40example.com&_mchId=417-NLK-080&_mchTk=_mch-aaa.com-1357246072769-42707&_mchHo=bbb.aaa.com&_mchPo=92&_mchRu=%2Fmraccountflow.aspx&_mchPc=https%3A&_mchVr=134 HTTP/1.1
Here's a table view of the params sent
_mchNc 1357246213615
_mchKy 3374aac1f87a9889d245a2fb538a3d7750dd1a00
_mchAtEmail alexd0103b@example.com
_mchId 417-NLK-080
_mchTk _mch-aaa.com-1357246072769-42707
_mchHo bbb.aaa.com
_mchPo 92
_mchRu /mraccountflow.aspx
_mchPc https:
_mchVr 134

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

Thank you for the suggestion about the cookie. Using private browsing isn't the issue. A cookie is still created by munchkin JS and is sent along with the request.

It turns out the code is working as expected! Why wasn't I seeing any result in the lead database? Our specific account has a backlong of leads to process so although the lead was successfully submitted, it was queued and is waiting to be processed.   

This is why I couldn't find the lead even though it was submitted.

(Oh, and how did I know it was queued? I found out from a discussion with our most excellent Marketo support person).

Thank you everyone for your suggestions and help!

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

So then if you open the lead record for alexd0103b@example.com, do you not find it?  If it's you hitting the page on your usual cookied browser, for example, you should see your email addy change to this example addy (if it was a real addy before), as you're telling marketo that this cookie's lead should be set to this addy.
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

Also, just to double check you're sure the Munchkin ID (that 9 character string) is correct for your subscription, right?
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

Thanks for the questions.

To find the lead, I go to Lead Database -> quick find. Nothing is found when I put in the email address I tried to create the lead for.

To test I set my browser to run in private / incognito mode so my cookies start from scratch. 

Munchkin ID is correct and is what we use elsewhere on the site.

Btw, the response returned from the mktoMunchkinFunction() call is HTTP 200 success.
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

Well there's your problem right there.  You need your cookie live, that's what the munchkin scripts hang together on.
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

Thank you for the suggestion about the cookie. Using private browsing isn't the issue. A cookie is still created by munchkin JS and is sent along with the request.

It turns out the code is working as expected! Why wasn't I seeing any result in the lead database? Our specific account has a backlong of leads to process so although the lead was successfully submitted, it was queued and is waiting to be processed.   

This is why I couldn't find the lead even though it was submitted.

(Oh, and how did I know it was queued? I found out from a discussion with our most excellent Marketo support person).

Thank you everyone for your suggestions and help!
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

"Our specific account has a backlong of leads to process so although the lead was successfully submitted, it was queued and is waiting to be processed.  
"

How leads backlog can be viewed in Marketo? What need to be done in order leads to be processed? Thanks in advance!
Anonymous
Not applicable

Re: associateLead is not creating leads. How can I debug it?

The only way to know the size of the backlog is to talk with your account manager/technical support. There isn't a tool which allows you to check without their help.

Marketo will process all leads in the backlog but it just takes time for them to catch up.