Munchkin Behavior

The default behavior of Marketo Munchkin is to do the following on page load:

  1. Check to see if the current browser has a Munchkin cookie and create one if it is not there.
  2. Send a “Visit Web Page” event to the designated Marketo instance using the information from the current page and browser. This records an activity to the corresponding record in Marketo.
  3. Send “Clicked Link on Web Page” event for any user clicks that occur on links.

The behavior of Munchkin can be modified through the usage of Munchkin Configuration settings, such as whether a cookie is created for all leads upon visiting the page with the cookieAnon setting, or modifying the click delay with clickTime setting. The sending of the Visit activity may be disabled by setting the apiOnly setting to true. As of version 162 (August 2022), clicks tel and mailto links are tracked in addition to http/s links.

Known and Anonymous Leads

On a lead’s first visit to a page on your domain, a new anonymous lead record is created in Marketo. The primary key for this record is the Munchkin cookie (_mkto_trk) which is created in the user’s browser. All subsequent web activity on that browser is recorded against this anonymous record. To be associated to a known record in Marketo, one of the following things must occur:

  • The lead must visit a Munchkin-tracked page with an mkt_tok parameter in the query string from a tracked Marketo email link.
  • The lead must fill out a Marketo Form.
  • A REST Associate Lead call must be sent.

Once one of these conditions is fulfilled, the cookie and all associated web activity is associated to the known lead.

A new anonymous web activity record is created for each individual browser, so if a lead visits your domain for the first time using a new computer and/or browser, then this association must take place again.

Domains

Munchkin creates and tracks individual cookies on a per-domain basis, so for known-lead tracking to occur across domains, a lead association event must occur for each domain. For example, if I control two domains, marketo.com, and example.com, and a lead fills out a form on marketo.com, then navigates to example.com later, then their activity on marketo.com is tracked on a known lead record, but their activity on example.com is anonymous. Known leads persist across subdomains however, so a known lead on www.example.com is also a known lead on info.example.com.

In the case that your top-level domain is two parts, such as .co.uk, then add a domainLevel parameter to your Munchkin snippet for the code to track correctly. See here for more details.

The Munchkin cookie uses the key _mkto_trk, and has a value following this pattern:

id:561\-HYG\-937&token:_mch\-marketo.com\-1374552656411\-90718

or

id:561\-HYG\-937&token:_mch\-marketo.com\-97bf4361ef4433921a6da262e8df45a

Munchkin cookies are specific to each second-level domain, that is, example.com. The default lifespan of the cookie is 2 years (730 days).

Beta

To opt in to the Munchkin beta channel for your landing pages, go to your Admin -> Treasure Chest menu and enable the “Munchkin Beta on Landing Pages” setting. This provides new code snippets in the Admin ->  Munchkin menu to allow you to use the beta version on external sites.

Opt-Out

Visitors may opt out of Munchkin tracking entirely by adding the querystring parameter “marketo_opt_out=true” to the URL in their browser. When the Munchkin JavaScript detects this setting, it attempts to set a new cookie “mkto_opt_out” with a value of true. All other Marketo tracking cookies are deleted, no new cookies are set, and no HTTP requests are made by Munchkin when this setting is detected.

Previous pageJavascript API
Next pageConfiguration

Marketo Engage


Marketo Migration to the Adobe Admin Console - (Pre-Migration)

Experience Cloud Tech Sessions

Tuesday, Mar 4, 6:00 PM UTC

Join Adobe's Customer Experience and Identity Team to prepare for a smooth Marketo migration to the Adobe Admin Console. Learn key steps, best practices, and how to avoid roadblocks for a seamless transition.

Register

Marketo Migration to the Adobe Admin Console - (Post-Migration)

Experience Cloud Tech Sessions

Tuesday, Mar 11, 4:00 PM UTC

Migrated Marketo to the Adobe Admin Console? Join our webinar to master key features, best practices, and troubleshooting tips. Learn how to manage users,, settings, and more. register now!

Register

Connect with Experience League at Summit!

Get front-row access to top sessions, hands-on activities, and networking—wherever you are!

Learn more