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.4K members online now
4.4K 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

2 accounts - why both show different results?

Not applicable
# 1
Not applicable

Hello,

I have 2 UAs in the tracking code.

Both are tracking "something", but both show totally different numbers of sessions, users etc. (talking about raw data view without any filters etc.)

 

What is the reason or is there a way to fix it?

 

Thank you for help.

 

 

 

1 Expert replyverified_user
1 ACCEPTED SOLUTION

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

Re: 2 accounts - why both show different results?

Top Contributor
# 9
Top Contributor
Hi,

It can be anything, you can rename it. Basically it's a name for the second tracker as it has to be a named tracker. For more information check here: https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

View solution in original post

Re: 2 accounts - why both show different results?

A T
Participant ✭ ✭ ✭
# 2
A T
Participant ✭ ✭ ✭

Looks strange.

 

Can you try with: 

 

https://ga-dev-tools.appspot.com/query-explorer/

Re: 2 accounts - why both show different results?

Not applicable
# 3
Not applicable
Thanks, I just tested both accounts on "All website data view" and chosen a finished day (2 days back).
One account shows 41 users, the 2nd account shows 105 users.

This is really strange. It almost seems to me that it randomly assigns the traffic to either 1st, or 2nd account.

Re: 2 accounts - why both show different results?

A T
Participant ✭ ✭ ✭
# 4
A T
Participant ✭ ✭ ✭

Re: 2 accounts - why both show different results?

Not applicable
# 5
Not applicable
worldofmanufacturers.com

Thank you.

Re: 2 accounts - why both show different results?

A T
Participant ✭ ✭ ✭
# 6
A T
Participant ✭ ✭ ✭

Thanks for the info.

Please install GA debugger: https://chrome.google.com/webstore/detail/jnkmfdileelhofjcijamephohjechhna

 

Then check in chrome console tab:

 

Running command: ga("create", "UA-41234210-1", "worldofmanufacturers.com")
analytics_debug.js:9 Ignoring create request for duplicate tracking name.

 

Your code:

<<

ga('create', 'UA-70252731-1', 'auto');
ga('send', 'pageview');

ga('create', 'UA-41234210-1', 'worldofmanufacturers.com');
ga('send', 'pageview');

>>

 

So basically line no.3 gets ignored and is never executed.

Re: 2 accounts - why both show different results?

Top Contributor
# 7
Top Contributor

Hi,

 

You need to set up the two different trackers like this:

 

ga('create', 'UA-70252731-1', 'auto');
ga('send', 'pageview');
ga('create', 'UA-41234210-1', 'auto', 'newTracker');
ga('newTracker.send', 'pageview');

Hope this helps.


Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital

Re: 2 accounts - why both show different results?

Not applicable
# 8
Not applicable
Thanks GA and Arnold,

I updated the code.
Quick question ... is 'newTracker' a command, or should it be renamed?

Thanks.

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

Re: 2 accounts - why both show different results?

Top Contributor
# 9
Top Contributor
Hi,

It can be anything, you can rename it. Basically it's a name for the second tracker as it has to be a named tracker. For more information check here: https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...

Arnold Majlath, Google Analytics Top Contributor
Was my response helpful? If yes, please accept it as solution.
Circle Me On Google+ | Visit me @ Redfly Digital