im having the same problem. this is the (redacted) code snippet google has provided:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-6666666-6', 'website.com');
ga('send', 'pageview');
</script>
and this is the code being generated on the site by the plugin:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-666666-6');
ga('send', 'pageview');
</script>
as you can see the third to last line is different. Ive tried adding the site domain under the “Tracking Domain” settings however that generates that line as follows:
ga('create', 'UA-666666-6', { 'cookieDomain': 'website.com' } );
which is still different to the google provided code.
how do I fix this?
Cheers,
Joe