Google Analytics Tagging

2
Hi All, We have a requirement for adding google analytics tags on some pages and we have been provided some dummy code and asked if this is possible in Mendix, can we add the code snippet similar to the one which is provided below for google analytics tagging? Please can anyone help me out in this. Can we use HTML Snippet on the page to add this provided code? Will this work? Please find more details below. "All they would need to do is add a code snippet like the below (not this exact one as I’ve used a dummy ID) to every page of the site, immediately after the <body> tag. We would then do everything else, adding our google analytics and doubleclick tags." <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXX" 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-XXXXX');</script> <!-- End Google Tag Manager --> Thanks in advance.
asked
1 answers
1

Did you read this blog post

Regards,

Ronald

answered