Analytics
4.4K members online now
Discuss regaining access to Analytics accounts, restoring accounts, changing user access levels, and navigating the homepage
 
Guide Me
star_border
Reply

Do I have the latest OR an old tracking code?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

<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-58344243-1', 'mrbarb.com');
ga('send', 'pageview');

</script>

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Th E
January 2016

Re: Do I have the latest OR an old tracking code?

Participant ✭ ✭ ☆
# 3
Participant ✭ ✭ ☆
You have latest Analytics tracking code but you could change cookieDomain field to "auto".
You can read more about Automatic Cookie Domain Configuration here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id#automatic_c...

View solution in original post

Re: Do I have the latest OR an old tracking code?

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭
+ what is the difference between these two lines?
Does it make any difference one has auto and the other has the site url?

ga('create', 'UA-58344243-1', 'mrbarb.com');

ga('create', 'UA-58344243-1', 'auto');
Marked as Best Answer.
Solution
Accepted by topic author Th E
January 2016

Re: Do I have the latest OR an old tracking code?

Participant ✭ ✭ ☆
# 3
Participant ✭ ✭ ☆
You have latest Analytics tracking code but you could change cookieDomain field to "auto".
You can read more about Automatic Cookie Domain Configuration here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id#automatic_c...