Confused about Google Analytics Changes

by CKTaylor7 2 replies
I am attempting to launch the Google Analytics for my site and have changed our all of the code based on the tracking code assigned in my current account.

However when I try to load data, it tells me this:Your Demographics and Interest Reports have been enabled, but your Analytics tracking code does not include the necessary support to show them. Learn more about the simple, one-line, one-time change to your tracking code to add this support.

So I look at the file and it says to change a line of code, which would be easy to do except the tracking code for my account doesn't have this code.

Here's the change it asks me to make:
When you make this update to your tracking code, you also need to update your privacy policy.
To implement Remarketing, Demographics and Interests reporting, or GDN Impression Reporting, replace the bold text in this example:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< /script>
with the bold text in the example below:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxx-y']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;

ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
< /script>

And here is the code that is assigned to my site:

<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-12459333-1', 'apscreen.com');
ga('send', 'pageview');
</script>

Can anyone please let me know what I am supposed to do on this one? Thanks.
#search engine optimization #analytics #confused #google
Avatar of Unregistered
  • Profile picture of the author FranksToys
    Did you update to Google's new "universal" code on your account or whatever it is called?
    {{ DiscussionBoard.errors[8974963].message }}
    • Profile picture of the author CKTaylor7
      Originally Posted by FranksToys View Post

      Did you update to Google's new "universal" code on your account or whatever it is called?
      yes, I checked again and this is the universal code
      not sure what is happening here
      {{ DiscussionBoard.errors[8981768].message }}
Avatar of Unregistered

Trending Topics