Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Pardot or Marketo Munchkin tracking missing: how to find and fix it

TRK-273Low impactCould addBy FunnelGuardPublished Updated
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.

Where the tracking chain breaks
  1. Visitor landsArrives from an email or ad
  2. Script loadsMunchkin or Pardot code missing
  3. Cookie setNo visitor ID created
  4. Activity in CRMNo page view or score

Without the script, the visit is never tied to the person.

Pages tracked before and after a fixExample numbers
Pages tracked before and after a fix (example)Before fix: 35 % of pages; After fix: 100 % of pages0387735100Before fixAfter fix% of pages

Example: a site where the script was only on the homepage and blog template.

How to check if your site has it

Check a page in your browser
  1. 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.

  2. Open DevTools and the Network tab

    Press F12, open Network, reload the page. For Marketo filter by munchkin; for Pardot filter by pi.pardot.com or your tracker domain.

  3. Look for the script and the hit

    Marketo loads munchkin.js and then sends a request to mktoresp.com or your Marketo instance. Pardot loads pd.js and requests pi.js-style hits to your account.

  4. Check the IDs

    In the page source search for Munchkin.init and confirm the ID matches the one in Marketo under Admin > Integration > Munchkin. For Pardot, check piAId and piCId match your account.

  5. 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.

Install the tracking script by platform
  1. Create a Custom HTML tag

    Paste the Munchkin or Pardot snippet from your platform. Do not also paste it into the site code.

  2. Trigger on All Pages

    Use the All Pages trigger, or a consent-aware trigger if your policy requires it.

  3. Preview and publish

    Use Preview mode to confirm the tag fires, then publish the container.

For Marketo, the standard Munchkin snippet looks like this. Replace the placeholder with your own Munchkin ID from Admin > Integration > Munchkin.

Marketo Munchkin snippethtml
<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

Confirmation checklist
  • 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.

Scattered vs central install

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.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.