Skip to main content
Level 1
Mar 26, 2021 4:00 AM UTC
Solved

Munchkin codes

Can I add Munchkin code in Google Tag Manager

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
SanfordWhiteman
SanfordWhitemanAccepted solution
User Group Leader
Mar 26, 2021 5:03 AM UTC

Sure.

 

The only edge case to consider is that GTM, by its very nature, adds another level of async loading. That is, the GTM JS library itself loads async, then it injects your matching tags async. So if the person navigates very quickly away, Munchkin may not have had a chance to bootstrap and send its initial hit. Exceedingly unlikely... but technically more likely than if you had the Munchkin embed right in the original document. (This is the case with all tag managers.)

3 replies

SanfordWhiteman
User Group Leader
SanfordWhitemanUser Group LeaderAccepted solution
User Group Leader
Mar 26, 2021 5:03 AM UTC

Sure.

 

The only edge case to consider is that GTM, by its very nature, adds another level of async loading. That is, the GTM JS library itself loads async, then it injects your matching tags async. So if the person navigates very quickly away, Munchkin may not have had a chance to bootstrap and send its initial hit. Exceedingly unlikely... but technically more likely than if you had the Munchkin embed right in the original document. (This is the case with all tag managers.)

Translate
janerusnak
Level 2
Feb 24, 2022 11:15 PM UTC

Hi @sanfordwhiteman, I reviewed a lot of entries on Munchkin code implementation through GTM and have an idea of the risks. 

What I wasn't able to find is the risks of having Munchkin tracking code directly on the non Marketo LP and through the GTM. You've mentioned that Munchkin script is smart enough to not load twice on Marketo LPs,  do you think the same applies to non marketo LPs? 

Translate
Looking to spend wisely at your company? Check out procurify.com
SanfordWhiteman
User Group Leader
User Group Leader
Feb 25, 2022 2:27 AM UTC

It has the same intelligence on non-Marketo LPs.

Translate