winord

GTM codes

Mar 26th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Copy the code below and paste it onto every page of your website.
  2. Paste this code as high in the <head> of the page as possible:
  3. <!-- Google Tag Manager -->
  4. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  5. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  6. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  7. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  8. })(window,document,'script','dataLayer','GTM-MGX6W2N');</script>
  9. <!-- End Google Tag Manager -->
  10.  
  11. Additionally, paste this code immediately after the opening <body> tag:
  12. <!-- Google Tag Manager (noscript) -->
  13. <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MGX6W2N"
  14. height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
  15. <!-- End Google Tag Manager (noscript) -->
Advertisement
Add Comment
Please, Sign In to add comment