AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
4.8K members online now
4.8K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Universal Analytics Code implementation

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

I seek help regarding the universal and classical GA code -

 

My site is tagged with ga.js code and my GA account tracking code shows - "this is your universal analytics code.... analytics.js code"

 

My question is - How can i change my site's GA code to analytics.js from ga.js?

Do i need to remove the ga.js snippet of should i use both codes simultaneous or create a new GA acoount ?

 

I am really confused and need urgent help! 

2 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Farhat F
November 2015

Re: Univetrsal Analytics Code implementation

Top Contributor
# 4
Top Contributor
Hi,

You need to:
A. Remove the existing ga.js code
B. Add the new analytics.js code

No need to create a new GA account.

Kind regards,
Zorin
Web analyst @ escapestudio.net

View solution in original post

Re: Univetrsal Analytics Code implementation

Visitor ✭ ✭ ✭
# 2
Visitor ✭ ✭ ✭

Re: Univetrsal Analytics Code implementation

Top Contributor
# 3
Top Contributor
You need to replace the old ga.js code with the new analytics.js code. Remember if you have eCommerce tracking or event tracking or any other custom code related to Google Analytics in your pages they need to be updated too.

You will most likely see some spikes in new vs. returning and possibly in other metrics too since there are some differences with calculations.
--
To make bad day worse, spend it wishing for the impossible

Antti Nylund, Google Analytics Top Contributor
Did my answer solve your issue? If yes, please mark it as the ‘Best Answer.’ Otherwise keep on asking.
Marked as Best Answer.
Solution
Accepted by topic author Farhat F
November 2015

Re: Univetrsal Analytics Code implementation

Top Contributor
# 4
Top Contributor
Hi,

You need to:
A. Remove the existing ga.js code
B. Add the new analytics.js code

No need to create a new GA account.

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Univetrsal Analytics Code implementation

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Will it effect the existing tracking?

Re: Univetrsal Analytics Code implementation

Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭
Mine is a healthcare website.

Will replacing the old code with analytics.js code effect my existing metrics numbers?

Re: Univetrsal Analytics Code implementation

Top Contributor
# 7
Top Contributor
Not in a way it would create problems. Just make sure you change all tracking codes and code instances for events, social ... as Antti mentioned.

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Univetrsal Analytics Code implementation

Visitor ✭ ✭ ✭
# 8
Visitor ✭ ✭ ✭
Ok!

So what u mean is that i have to replace old code with the universal code being shown in my existing GA account only and it wont effect my numbers/old data being tracked?


Re: Univetrsal Analytics Code implementation

Top Contributor
# 9
Top Contributor
Changing the code will not alter your historic data.

Kind regards,
Zorin
Web analyst @ escapestudio.net

Re: Univetrsal Analytics Code implementation

Visitor ✭ ✭ ✭
# 10
Visitor ✭ ✭ ✭
Thank you Sir!