SOLVED

Marketo tags in Google Tag Manager

Go to solution
Anonymous
Not applicable

Marketo tags in Google Tag Manager

Does anyone have experience adding Marketo tags in Google Tag Manager? Please share your experience. Thanks in advance.
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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,



View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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,



Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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?
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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>

 
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

Sam, Thanks for sharing.
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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 
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

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.
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

We now have a guide about integrating GTM with Munchkin available here:

http://developers.marketo.com/blog/integrating-munchkin-with-google-tag-manager/
 
Anonymous
Not applicable

Re: Marketo tags in Google Tag Manager

Hi Murtza,

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