Turn on Marketo’s Munchkin JavaScript on your community pages so Marketo can track visits and clicks in the browser. A community admin enters the Munchkin account ID under Settings → General in the Marketo section, selects Use Marketo JavaScript Lead Tracking, and saves.
Munchkin is Marketo’s browser tracking script. When Bevy loads it on public community pages, Marketo can record page visits and clicks, including anonymous visitors, until a person is identified as a lead. This option does not use the Marketo client ID or client secret. For the other Marketo connection modes, see Marketo integration - Introduction.
Before you start
- Have Marketo Admin access so you can open the Munchkin page and copy your Munchkin account ID (format like
123-ABC-123). - Confirm you can open Settings → General in Bevy as a community admin. If the Marketo section is missing, contact your Customer Success Manager or Bevy Support.
Note: Find the Munchkin account ID in Marketo Admin on the Munchkin page. Use Marketo’s documentation if that Admin path has moved in your Marketo experience.
Turn on JavaScript lead tracking
- Sign in to the Bevy admin dashboard as a community admin.
- Go to Settings → General (
/accounts/dashboard/#/admin/settings/general/). - Open the Marketo section.
- In Marketo Munchkin account ID, enter your Munchkin ID (example:
123-ABC-123). - Select Use Marketo JavaScript Lead Tracking.
- Click Save at the bottom of the page.
Bevy loads Munchkin only when both the account ID is set and Use Marketo JavaScript Lead Tracking is selected. You do not need Marketo client ID or client secret for this option alone.
What Bevy loads on the page
After you save, public community pages include a Munchkin script similar to this (your account ID replaces the example value):
<script type="text/javascript">
(function() {
var didInit = false;
function initMunchkin() {
if (didInit === false) {
didInit = true;
Munchkin.init('123-ABC-123', {
asyncOnly: true,
disableClickDelay: true
});
}
}
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>Bevy initializes Munchkin with asyncOnly and disableClickDelay so tracking does not block page interaction.
Verify tracking
- Open a public community page in a browser (use an incognito window if you want a clean session).
- In developer tools, confirm a request to
munchkin.marketo.net/munchkin.js, or that the page source includes your Munchkin account ID. - In Marketo, check web activity for the visit (for example Visited Web Page). Anonymous activity appears until Marketo associates the visitor with a known lead.
Tip: To build a Marketo smart list from campaign URLs, use Visited Web Page with the full page URL (including UTM parameters) when the visitor previously accepted Marketo cookies. Query-string details also appear on individual web-activity records in Marketo.
What this option does not do
- It does not push membership or profile updates through the Marketo API — that is Marketo integration - Set up membership tracking.
- It does not create Marketo event programs or set Registered / Attended statuses — that is Marketo integration - Set up event programs.
- You cannot change Munchkin timing in Bevy; the script runs when the page loads in the browser.
If the script never loads, or Marketo shows no web activity after a correct save, see Marketo integration - Test and troubleshoot.