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

Anonymous
Not applicable

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

Hello,

I'm using the associateLead JavaScript API to add/update a lead at Marketo. The result is that there no leads are created. There is no response. Status is always 200/OK.

Is there a way to have a look at some logs in order to find what is the problem?

The GET request call is:

http://615-zxm-038.mktoresp.com/webevents/associateLead?_mchNc=1374692900853&_mchKy=30292249c804c3ae86ae80ea097ef9eb56dc02af&_mchAtEmail=milena.knijarova111%40telerik.com&_mchAtFirstName=milena1&_mchAtLastName=k&_mchId=615-ZXM-038&_mchTk=_mch-localhost-1374689099914-81412&_mchHo=localhost&_mchPo=83&_mchRu=%2Foldformpage&_mchPc=http%3A&_mchVr=134

The params list is:

_mchAtEmail milena.knijarova111@telerik.com
_mchAtFirstName milena1
_mchAtLastName k
_mchHo localhost
_mchId 615-ZXM-038
_mchKy 30292249c804c3ae86ae80ea097ef9eb56dc02af
_mchNc 1374692900853
_mchPc http:
_mchPo 83
_mchRu /oldformpage
_mchTk _mch-localhost-1374689099914-81412
_mchVr 134


Tags (1)
3 REPLIES 3
Anonymous
Not applicable

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

If you reach out to support they can help troubleshoot.

Also, can you post the Javascript or link to your page that has it? I might be able to suggest something.
Anonymous
Not applicable

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

Hello Erik,

Thank you for your answer!

The site I am using to test associate lead JS is on my local machine. Here is the code of test function (with hardcoded email and key):

    _submitClickHandler: function () {
       var email = "milena.knijarova111@telerik.com";
       var key = "30292249c804c3ae86ae80ea097ef9eb56dc02af";
   
      mktoMunchkinFunction('associateLead', {
            Email:email
            //FirstName:"milena2",
            //LastName: 'lastName2',
            //Street:'Street'
           },key
        );
    }

There is no JavaScript errors.
Thank you for your help in advace!
Anonymous
Not applicable

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

Hmm. Is Munchkin otherwise on the page and initialized? In general, this looks fine to me and I'm not seeing where it would break.