Analytics
2.3K members online now
2.3K 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

Two Analytics codes on one website - incorrect tracking

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi,

 

we have two GA scripts on one website. But in first GA account there are different numbers in e-commerce than another. Is there a way how to insert it correctly, so they both measure the same amount of orders? Number of visitors is almost the same in both accounts. 

 

Thank you

Barbora

1 Expert replyverified_user

Two Analytics codes on one website - incorrect tracking

Rising Star
# 2
Rising Star

Barbora,

 

You have to customize the code to in order to use two trackers or use GTM.

 

If you haven't named the second tracker, all the data is suspect.

 

More on Dual Tracking here:

 

https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

 

Best,

 

Theo Bennett

 

 

 

 

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

Two Analytics codes on one website - incorrect tracking

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Barbora, 

 

Need to do some customization in the code. 

ga('create', 'UA-xxxxx-y', 'auto');
ga('create', 'UA-xzxzxx-w', 'auto', 'TrackerName');
ga('send', 'pageview');
ga('TrackerName.send', 'pageview');

 

the second called as named tracker 

Best Reg
J