SOLVED

Munchkin Object? API documentation

Go to solution
Anonymous
Not applicable

Munchkin Object? API documentation

Where can i find all the functions for the Munchkin object? i only see  some of them in examples.

for example: 
  1. Munchkin.createTrackingCookie();
  2. how do i get every other Method for the Munchkin() Object?
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Munchkin Object? API documentation

Try this in your JS console:
 
console.log(getCookie("_mkto_trk"));
 
I just tested this, and it works. _mkto_trk is name Munchkin cookie.

View solution in original post

6 REPLIES 6
Josh_Hill13
Level 10 - Champion Alumni

Re: Munchkin Object? API documentation

Check developer.marketo.com
Anonymous
Not applicable

Re: Munchkin Object? API documentation

thats where im looking, and it doesnt seem to be there...

i cant find any real reference to the munchkin object other then certain examples in the basic "how to install" the script...which is rather useless.

here is what i want to do...maybe that will help

i have my tracking code installed: on success, i want to console.log() the munchkin cookie id....id assume since you set the cookie with Munchkin.createTrackingCookie();  ...that there would be a Munchkin.getTrackingCookie(); but that doesnt seem to be the case....
Anonymous
Not applicable

Re: Munchkin Object? API documentation

The only publically exposed methods are the ones listed there. You could always grab the cookie yourself and output the value if you wanted.
Anonymous
Not applicable

Re: Munchkin Object? API documentation

Here are the Munckin docs
http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/

I
 do not Munchkin defines the getTrackingCookie function.

Anonymous
Not applicable

Re: Munchkin Object? API documentation

Try this in your JS console:
 
console.log(getCookie("_mkto_trk"));
 
I just tested this, and it works. _mkto_trk is name Munchkin cookie.
Anonymous
Not applicable

Re: Munchkin Object? API documentation

that worked. although i was hoping the munchkin api would be more robust. 

thanks!