Marketo tags in Google Tag Manager | Community
Skip to main content
March 14, 2014
Solved

Marketo tags in Google Tag Manager

  • March 14, 2014
  • 9 replies
  • 5286 views
Does anyone have experience adding Marketo tags in Google Tag Manager? Please share your experience. Thanks in advance.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
Hi,

We use GTM and Munchkin together. Create a new tag in GTM with the type "Custom HTML Tag". Copy and paste your Munchkin code into the HTML field. Then, set a rule to fire it. You probably want to fire it everywhere on your website, in which case you would use URL matches regex .*  (copy and paste the ".*" into the blank)  For us, we blocked out our documentation section, as it gets a ton of unrelated traffic.

Cheers,



9 replies

Accepted solution
March 14, 2014
Hi,

We use GTM and Munchkin together. Create a new tag in GTM with the type "Custom HTML Tag". Copy and paste your Munchkin code into the HTML field. Then, set a rule to fire it. You probably want to fire it everywhere on your website, in which case you would use URL matches regex .*  (copy and paste the ".*" into the blank)  For us, we blocked out our documentation section, as it gets a ton of unrelated traffic.

Cheers,



March 14, 2014
Hi Jill,

Thanks for your respond, one more question, does it inclusing JavaScript tags or just add the function, I noticed for Bing Tags doens't including JavaScript Tags?
March 14, 2014
Yup,

I did include Java script tags. Like this:

<script type="text/javascript">
$.ajax({
  url: '//munchkin.marketo.net/munchkin.js',
  dataType: 'script',
  cache: true,
  success: function() {
    Munchkin.init('WHATEVER-YOUR-MUNCHKIN-ID-IS');
  }
});
</script>

 
July 2, 2014
Hi,

We just implemented Google Tag Manager and included the Munchkin tracking code as one of the tags.
Followed the instructions as above with just one caveat - instead of the "Simple" tracking code, you need to use the "Asynchronous" tracking code.

I also selected the checkbox for "Support document.write" in Google Tag Manager just to be safe. 

Cheers,
Sam
July 2, 2014
Sam, Thanks for sharing.
August 14, 2014
Hi,

Just implemetend the above with the Asynchronous code. I see it firing on our website, but not seeing any analytics pull into Marketo. Anyone else have trouble with this?

Thanks,
Tim 
August 15, 2014
I did have a lot of problems when I first implemented GTM. My biggest issue was munchkin being called twice & making the page render blank. It drove me nuts & took 2 months to figure out a true fix. Sorry but I tried so many things I can't remember which it was that finally did it.
August 19, 2014
We now have a guide about integrating GTM with Munchkin available here:

http://developers.marketo.com/blog/integrating-munchkin-with-google-tag-manager/
 
September 2, 2014
Hi Murtza,

Thanks for the link. So, when we  integrating GTM with Munchkin Asynchronous code , Marketo landing pages won't call twice, right?