Confused about Google Analytics Changes
- SEO |
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.
-
FranksToys -
Thanks - 1 reply
Signature"The highest glory of the American Revolution was this - that it connected, in one indissoluble bond, the principles of civil government with the principles of Christianity."{{ DiscussionBoard.errors[8974963].message }}-
CKTaylor7 -
Thanks
{{ DiscussionBoard.errors[8981768].message }} -
-