SOLVED

Munchkin Object? API documentation

Go to solution
Anonymous
Not applicable
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
Anonymous
Not applicable
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
Anonymous
Not applicable
that worked. although i was hoping the munchkin api would be more robust. 

thanks!
Anonymous
Not applicable
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
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
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
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....
Josh_Hill13
Level 10 - Champion Alumni
Check developer.marketo.com