Skip to main content
Mar 14, 2014 5:53 PM UTC
Solved

Marketo tags in Google Tag Manager

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.
Accepted solution
Mar 14, 2014 8:12 PM UTC
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
Mar 14, 2014 8:12 PM UTC
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,



Translate
Mar 14, 2014 8:20 PM UTC
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?
Translate
Mar 14, 2014 8:52 PM UTC
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>

 
Translate
Jul 2, 2014 5:14 AM UTC
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
Translate
Jul 2, 2014 5:15 PM UTC
Sam, Thanks for sharing.
Translate
Aug 14, 2014 10:37 PM UTC
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 
Translate
Aug 15, 2014 3:20 PM UTC
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.
Translate
Aug 19, 2014 8:10 PM UTC
We now have a guide about integrating GTM with Munchkin available here:

http://developers.marketo.com/blog/integrating-munchkin-with-google-tag-manager/
 
Translate
Sep 2, 2014 11:09 PM UTC
Hi Murtza,

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