Go to Admin and click Munchkin in the tree on the left.
Select the appropriate workspace for the web pages you wish to track.
If you don't use the special workspace Munchkin code, the people will be assigned to the default partition that was created when your account was set up. It's named "Default" initially, but you might have changed that in your own Marketo account.
Select Asynchronous for Tracking Code Type.
Don’t use the code shown in this screenshot - you must use the unique code that appears in your account!
Place the tracking code on your web pages in the <head> element. New people that visit this page will be assigned to this partition.
You can only use one Munchkin tracking script for a single partition and workspace on a page. Do not include tracking scripts for multiple partitions/workspaces on your website.
Landing pages created in Marketo automatically contain tracking code, so you don’t need to put this code on them.
Types of Munchkin Tracking Codes
There are 3 types of Munchkin tracking codes you can choose from. Each impact the webpage load times differently.
- Simple: has the fewest lines of code, but does not optimize for webpage loading time. This code loads the jQuery library each time a webpage is loaded.
- Asynchronous: reduces webpage loading time. This code checks if the jQuery library already exists, loads it if it's missing, and uses it for executing tracking code once the rest of the webpage has loaded.
- Asynchronous jQuery: reduces webpage loading time and also improves system performance. This code assumes that you already have jQuery, and does not check to load it.