Using Multiple Munchkin Tracking Codes on a Single Page

Please ensure that you have access to an experienced JavaScript developer. 

Marketo Technical Support is not set up to assist with troubleshooting JavaScript.

With a change to the Munchkin javascript, you can send web tracking events like page visits or clicked links to multiple instances of Marketo.

The code below is for sending Munchkin events to two or more Marketo accounts. If the events need to go to only one Marketo account, you can use the Munchkin tracking code as-is from the Munchkin Setup part of the Admin section.

Note: Marketo tracks visitors to your website by domain (ex. ""). If your hosting this Munchkin script on a domain that's different than your primary domain (ex. ""), those visitors will appear as anonymous leads until they fill out a form on that other domain.

Add a parameter to the mktoMunchkin call -- altIds -- and include an array of the additional Munchkin IDs where these web events should go, as in the example below. You can include any number of altIds in the array, each separated by commas.

In the example below, replace the highlighted Munchkin IDs ("XXX-XXX-XXX", "YYY-YYY-YYY") with the Munchkin IDs from each Marketo account where the tracking information should be sent.

<script src="" type="text/javascript"></script>
<script>mktoMunchkin("XXX-XXX-XXX", { altIds: ['YYY-YYY-YYY', 'ZZZ-ZZZ-ZZZ'] });</script>

Related Articles

Adding Javascript Tracking Code to your Website (Munchkin)