Hi, thank you very much. This seems to work.
So sorry to have to bother you more, but I have the same problem on our other site and have tried to use your code by modifying it with the correct analytics code, but I am still getting that warning.
<!– Global site tag (gtag.js) – Google Analytics –>
<script async type=”text/javascript” class=”cmplz-native” src=”https://www.googletagmanager.com/gtag/js?id=UA-156555122-1″></script>
<script type=”text/plain” class=”cmplz-stats”>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-156555122-1’);
</script>
<script type=”text/plain” class=”cmplz-script”>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘AW-754441312’);
</script>
This site also has a google tag manager code in the header php.
<!– Google Tag Manager –>
<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’,’GTM-KLZBKXK’);</script>
<!– End Google Tag Manager –>
Is that the problem ?
Thank you very much, kind regards!