Munchkin Object? API documentation | Community
Skip to main content
August 20, 2014
Solved

Munchkin Object? API documentation

  • August 20, 2014
  • 6 replies
  • 1850 views
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.
Best answer by
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
August 20, 2014
Check developer.marketo.com
August 20, 2014
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....
August 20, 2014
The only publically exposed methods are the ones listed there. You could always grab the cookie yourself and output the value if you wanted.
August 20, 2014
Here are the Munckin docs
http://developers.marketo.com/documentation/websites/lead-tracking-munchkin-js/

I
 do not Munchkin defines the getTrackingCookie function.

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

thanks!