Google Tag Manager Code

Posted in: Newsmag
Post count: 56

Hello,

I need to put Google Tag Manager code to my site:

<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-PTR2L7"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<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=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-PTR2L7');</script>
<!-- End Google Tag Manager -->

Can I use Custom JavaScript section of your Theme Panel for that? Or should I put the code some other way

Thanks!


Alex

Post count: 7909

Hi,

Please paste the code in header.php file – http://screencast.com/t/YYh31R6DuhQ right after open body tag like it is recommended here – https://support.google.com/tagmanager/answer/6103696

Thanks!

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.