Solved

Google analytics new tracking codes must be replaced?

Posted on 2016-11-29
2
83 Views
Last Modified: 2016-12-28
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
Comment
Question by:MOSTAGHASSI
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 41906572
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
 

Author Closing Comment

by:MOSTAGHASSI
ID: 41907201
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
songs will not play in k love website 5 56
Product web page design  -  Whose is best suited for that? 9 58
I need help upgrading my urls 5 30
Run an android app on IOS 3 51
The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
Some of the SEO trends we might expect in 2017.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to choose which pages of your form are visible to your users based on their inputs. The page rules feature provides you with an opportunity to create if:then statements for y…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question