webly
Forum Replies Created
-
thanks again but I dont think youre reading what im saying! i already tried that, and pasted the results in the first post I made. It still doesn’t match. The AIOSEO plugin generates a line of code like this:
ga('create', 'UA-666666-6', { 'cookieDomain': 'website.com' } );where the google generated code looks like this:
ga('create', 'UA-6666666-6', 'website.com');Either way, Ive got it sorted by using the Yoast plugin instead. I appreciate your attempt to help, I felt like I had explained it well but I guess maybe I didnt!
Cheers,Joe
thanks for the quick reply!
I havent actually configured domain tracking, though I did try that to see if it would provide the domain in the first snippet of code that google provided, but it didnt as you can see in the third example i provided.
so if you compare the first example – which is the code google gave me – with the second example – the code the AIOSEO plugin generates – you can see the only difference is on the third to last line, where the domain name is not included.
Cheers
joeim 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