Skip to content

Instantly share code, notes, and snippets.

@ahmaxed
Created July 6, 2020 09:52
Show Gist options
  • Save ahmaxed/524ec269b2336355daef0da3e8f68e2e to your computer and use it in GitHub Desktop.
Save ahmaxed/524ec269b2336355daef0da3e8f68e2e to your computer and use it in GitHub Desktop.
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5D6RKKP"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<script>
// Set up dataLayer with data if provided
window.dataLayer = window.dataLayer || [{ gaPropertyId: 'UA-55446531-20' }];
// Initialized GTM via gtag
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-55446531-20');
// Configure and initialize GTM
(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+'&gtm_cookies_win=x';f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer', 'GTM-5D6RKKP');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment