Does this codes do the same?
-
is the following code:
<!-- BEGIN GADWP v5.3.7 Tag Manager - https://exactmetrics.com/ --> <script> window.dataLayer = window.dataLayer || []; window.dataLayer.push({}); </script> <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','UA-12345678-9'); </script> <!-- END GADWP Tag Manager -->the same of having the code google suggests?:
<!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-12345678-9"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-12345678-9'); </script>Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Does this codes do the same?’ is closed to new replies.