Marketo Munchkin Issue | Community
Skip to main content
Level 4
October 22, 2024
Question

Marketo Munchkin Issue

  • October 22, 2024
  • 2 replies
  • 1853 views

I am having issues on a couple of our sites with the Marketo Munchkin code. We are using Google Tag Manager for both sites, which we also use for many of our other sites and they work fine. On these two though I am getting an error in Chrome's console which reads:

Uncaught ReferenceError: Munchkin is not defined at <anonymous>:1:1

These are the two sites having the issue

  • rapidrecon.com
  • velocityautomotive.com

Has anyone else had this issue and know what might be causing it.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 2
October 22, 2024

Hi @kenmckown 

 

The Munchkin is not defined error typically means that the Munchkin tracking script isn't loading correctly on your sites.

 

To resolve this, ensure that the Munchkin tracking code is properly implemented in Google Tag Manager for both sites. Verify that the Marketo tracking script something like this:

 

<script src="//munchkin.marketo.net/munchkin.js" type="text/javascript"></script> <script>Munchkin.init('YOUR_MUNCHKIN_ID');</script>

 

Also, check if there are any other scripts that might be blocking or conflicting with the Munchkin tag. Occasionally, other JavaScript code can trigger an error that prevents Munchkin from initializing properly.

 

Thanks

 

 

SanfordWhiteman
Level 10
October 22, 2024

There’s no sign that you’re actually trying to inject and reference Munchkin using GTM on those sites. It doesn’t appear anywhere in your public GTM properties.

 

Are you really seeing that error on the root domains (which should of course have Munchkin too!) or specific pages under those domains? Make sure you supply a page where it’s actually happening, right now.

SanfordWhiteman
Level 10
October 24, 2024

@kenmckown hello?