Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 125
  • Last Modified:

Google analytics new tracking codes must be replaced?

Hello;

In a website that i'm reconstructing there are old google analytics tracking codes,but i see that in control panel of Google analytics there are new version of codes,do i must change the old codes with new?

The old version:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxxx-1");
pageTracker._trackPageview();
</script>

Open in new window


Thanks
0
MOSTAGHASSI
Asked:
MOSTAGHASSI
1 Solution
 
Scott Fell, EE MVEDeveloperCommented:
Yes, change the code, but make sure to use the same id like UA-xxxxxxx-1.  GA will give you the code to replace.
0
 
MOSTAGHASSIAuthor Commented:
Thanks
0

Featured Post

Reclaim your office - Try the MB 660 headset now!

High level of background noise often makes it difficult for employees to concentrate fully on their jobs – or to communicate clearly on calls. The MB 660 headset helps you create a disruption free workspace.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now