V1.7 GOOGLE TAG MANAGER

Mantis23

Member
XNullUser
Joined
Oct 22, 2020
Messages
507
Reaction score
0
Points
16
NullCash
2
Thank you for this module!
 

p1766

Member
XNullUser
Joined
Jan 16, 2021
Messages
264
Reaction score
0
Points
16
NullCash
1
Thanks!
 

lucke

New member
XNullUser
Joined
May 20, 2020
Messages
9
Reaction score
0
Points
1
NullCash
2
if you want you can make it with simply add these lines in the head.tpl :
put your GTM id -> GTM-XXXXXXX
{literal}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- End Google Tag Manager -->
{/literal}
and add in the layout-both-colums.tpl (just after the body tag)

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
That's all
 

torotero

Well-known member
Diamond
Elite
Joined
Jan 7, 2020
Messages
1,119
Reaction score
198
Points
63
NullCash
45
Thank you for sharing this module.
Greetings
 
Top