On this page
What this issue is
Marketo uses a JavaScript tracker called Munchkin. Salesforce Pardot (now Marketing Cloud Account Engagement) uses a tracking code snippet. Both set a cookie in the visitor's browser and send page views back to your marketing platform. When a known person later clicks from an email or submits a form, the platform joins that cookie to their record and shows their web history.
Why it costs you leads or sales
The direct damage is usually limited, so we rate the impact as low. Forms embedded from Marketo or Pardot can still submit. What you lose is context: page views, visit history, lead scoring points, and the link between a campaign and a person. Sales sees a lead with no browsing history. Scoring and nurture programs that trigger on page visits never fire. Reports under-count web activity.
- Visitor landsArrives from an email or ad
- Script loadsMunchkin or Pardot code missing
- Cookie setNo visitor ID created
- Activity in CRMNo page view or score
Without the script, the visit is never tied to the person.
Example: a site where the script was only on the homepage and blog template.
How to check if your site has it
Open the page in a private window
Use a key page: homepage, a landing page, a pricing page and a thank-you page. Check each, not just one.
Open DevTools and the Network tab
Press F12, open Network, reload the page. For Marketo filter by
munchkin; for Pardot filter bypi.pardot.comor your tracker domain.Look for the script and the hit
Marketo loads
munchkin.jsand then sends a request tomktoresp.comor your Marketo instance. Pardot loadspd.jsand requestspi.js-style hits to your account.Check the IDs
In the page source search for
Munchkin.initand confirm the ID matches the one in Marketo under Admin > Integration > Munchkin. For Pardot, checkpiAIdandpiCIdmatch your account.Check consent
Accept cookies and reload. If the script only appears after accepting, your banner is blocking it before consent, which may be intended but affects how many visits you record.
How to fix it
Install the script once, in the head or just before the closing body tag, on every page you want tracked. Loading it twice can double count page views.
Create a Custom HTML tag
Paste the Munchkin or Pardot snippet from your platform. Do not also paste it into the site code.
Trigger on All Pages
Use the All Pages trigger, or a consent-aware trigger if your policy requires it.
Preview and publish
Use Preview mode to confirm the tag fires, then publish the container.
Use a header scripts method
Add the snippet through your theme's header scripts setting, a header and footer plugin, or the Marketo or Pardot plugin if you already use one.
Check page builder templates
Landing pages built with some builders or hosted on a separate theme may skip the global header. Test them.
Add to Project Settings
Open Project Settings > Custom Code and paste the snippet in Head Code or Footer Code, then publish.
Add a custom code snippet
Go to Settings > Custom Code, add the snippet, set it to All pages and place it in Head or Body end.
Use Code Injection
Open Settings > Advanced > Code Injection and paste the snippet in the Header. Code injection may need a plan that allows it.
Add to your shared layout
Put the snippet in the base template so every page inherits it, including landing pages and thank-you pages.
For Marketo, the standard Munchkin snippet looks like this. Replace the placeholder with your own Munchkin ID from Admin > Integration > Munchkin.
<script type="text/javascript">
(function() {
var didInit = false;
function initMunchkin() {
if (didInit === false) {
didInit = true;
Munchkin.init('000-AAA-000');
}
}
var s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = '//munchkin.marketo.net/munchkin.js';
s.onreadystatechange = function() {
if (this.readyState == 'complete' || this.readyState == 'loaded') {
initMunchkin();
}
};
s.onload = initMunchkin;
document.getElementsByTagName('head')[0].appendChild(s);
})();
</script>How to confirm it's fixed
- The script request appears once per page in the Network tab
- The Munchkin ID or Pardot account ID matches your account
- Key pages checked: home, landing, pricing, thank-you
- A cookie from the platform is set after consent (for Marketo
_mkto_trk) - Click a tracked email link, then visit a page. The visit shows in the person's activity log
- Page views appear in the lead or prospect record after a few minutes
How to prevent it happening again
Keep the script in one place, such as the shared layout or one tag manager tag, so new pages inherit it. Add the check to your launch list for new landing pages, theme changes and migrations. After any consent banner change, retest. Review the tag manager's publish history when tracking suddenly drops.
Before
- Snippet pasted on some pages
- New landing pages miss it
- Duplicate loads on others
After
- One tag in one place
- Every page inherits it
- Checked at each launch
How FunnelGuard handles this
FunnelGuard does not check for the Pardot or Marketo Munchkin script yet. It is a possible future check. Today, FunnelGuard runs your real customer journeys, such as lead forms, on a schedule and checks each step, the tracking hits sent to ad and analytics platforms like GA4, Google Ads and Meta, and whether test leads reach your inbox and CRM. That can show a broken form or a lead that never arrives, but it will not tell you the Munchkin script is absent.
To watch for it yourself, add the script check to your release checklist, spot check key pages in the Network tab after each change, and look in Marketo or Pardot for a drop in web activity or new visits. You can also use the free read-only FunnelGuard website audit for a general look at your site, keeping in mind it is not a Munchkin check.
Questions people ask
Why is my Marketo Munchkin tracking not working?
Usually the script is missing from the page, the Munchkin ID is wrong, a consent banner blocks it, or an ad blocker hides it in your test. Check the Network tab for munchkin.js and confirm the ID matches Admin > Integration > Munchkin.
How do I check if Munchkin is installed on my website?
Open the page, press F12, go to the Network tab and reload. Filter by munchkin. You should see munchkin.js load and a tracking request follow. You can also search the page source for Munchkin.init.
Why are Pardot visitor activities not showing on a prospect?
The tracking code may be missing from that page, the prospect's cookie may not be linked yet, or the browser may block the cookie. Prospects only get web activity after they click a tracked link or submit a form on a tracked page.
Where do I find my Pardot tracking code?
In Pardot (Account Engagement), open the campaign settings and look for the tracking code, or the tracker domain settings. Copy it from there so it has your account and campaign IDs.
Can I install Munchkin with Google Tag Manager?
Yes. Create a Custom HTML tag with the Munchkin snippet and fire it on All Pages. Make sure the snippet is not also in the site code, or it may load twice.
Does a cookie banner block Munchkin or Pardot tracking?
It can. If your banner holds back marketing scripts until consent, the script only loads after acceptance. That is often intended, but it means visits from people who decline are not tracked.
Will FunnelGuard tell me if my Munchkin script is missing?
Not yet. This check is not available and may be added later. FunnelGuard does monitor form journeys and test lead delivery, so a broken form still shows up, but check the Munchkin script by hand.
Related issues
- TRK-267HubSpot tracking code missingFix guide
- TRK-268HubSpot form submissions not linked to tracked visitor (hutk missing)Fix guide
- TRK-270UTMs not written to CRM contact fieldsFix guide
- TRK-274ActiveCampaign / Mailchimp site tracking missingFix guide
- TRK-277Lead source field overwritten on later visitsFix guide
- TRK-269HubSpot original source shows 'Offline' for web leadsFix guide