Skip to main content
Aug 20, 2014 4:38 PM UTC
Solved

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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Accepted solution
Aug 20, 2014 6:24 PM UTC
Try this in your JS console:
 
console.log(getCookie("_mkto_trk"));
 
I just tested this, and it works. _mkto_trk is name Munchkin cookie.

6 replies

Josh_Hill13
Level 10
Aug 20, 2014 4:39 PM UTC
Check developer.marketo.com
Translate
Aug 20, 2014 4:51 PM UTC
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....
Translate
Aug 20, 2014 6:21 PM UTC
The only publically exposed methods are the ones listed there. You could always grab the cookie yourself and output the value if you wanted.
Translate
Aug 20, 2014 6:24 PM UTC
Here are the Munckin docs
http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/

I
 do not Munchkin defines the getTrackingCookie function.

Translate
Accepted solution
Aug 20, 2014 6:24 PM UTC
Try this in your JS console:
 
console.log(getCookie("_mkto_trk"));
 
I just tested this, and it works. _mkto_trk is name Munchkin cookie.
Translate
Aug 20, 2014 6:58 PM UTC
that worked. although i was hoping the munchkin api would be more robust. 

thanks!
Translate