Hey guys,
I installed version 2.0.3 of the google analytics plugin, copied my tracking code, clicked update, and it seemed to work okay. But when I tried to view the page on my iphone, the following shows in the header:
https://www.googletagmanager.com/gtag/js?id=UA-110380891-1
On further investigation my original tracking code is the following:
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-110380891-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110380891-1');
</script>
But when I enter it in Google Analytics and press “update”, it changes to this:
<!-- Global site tag (gtag.js) - Google Analytics -->
https://www.googletagmanager.com/gtag/js?id=UA-110380891-1
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-110380891-1');
</script>
Please help me look into it. My website is www.consultparv.com, thanks for your help.