Analytics
1.5K members online now
Discuss regaining access to Analytics accounts, restoring accounts, changing user access levels, and navigating the homepage
 
Guide Me
star_border
Reply

Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Is it allowed to have 2 google analytics account for 1 website?

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author harsher h
July 2016

Re: Is it allowed to have 2 google analytics account for 1 website?

Top Contributor
# 11
Top Contributor
Yes, instead of two separate codes use only the snippet I provided. It won't affect any historical data already collected in GA. Let me know if you have more questions.

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: Is it allowed to have 2 google analytics account for 1 website?

Top Contributor
# 2
Top Contributor
Hi,

You can track a single website in multiple properties in different accounts.
Make sure you implement the tracking code properly when you have multiple trackers. Please check the documentation here:
https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_w...
Let me know if you have questions.

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: Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 3
Follower ✭ ✭ ☆
I have 2 different analytics account and the thing is that..one of the account shows..appropriate readings but the other one shows ZERO page views..i have applied anaytics code to both of them..is it right to do so?..and i am unable to understand the.. thing about trackers that you asked me to refer to..in the link given by you...i am not good at understanding coding..if you could help me with that...i would be very grateful..
Thank you.

Re: Is it allowed to have 2 google analytics account for 1 website?

Top Contributor
# 4
Top Contributor
Hi,

Most likely your trackers are not set up properly, if you could post your site URL or the tracking code you put on your site I'd be happy to help with it.

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: Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 5
Follower ✭ ✭ ☆
you want me the paste the whole analytic code ?..you sure..it won't cause any trouble to me..if other people get to see it..?

Re: Is it allowed to have 2 google analytics account for 1 website?

Top Contributor
# 6
Top Contributor
Yes, please paste the tracking code here. You can change the UA ids to UA-XXXXXX-1 and UA-XXXXXX-2 if you don't want to share them.

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: Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 7
Follower ✭ ✭ ☆
1st account.

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

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

</script>

2ND ACCOUNT

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

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

</script>

The 2nd one..isn't working appropriately.
Thank you.!!

Re: Is it allowed to have 2 google analytics account for 1 website?

Top Contributor
# 8
Top Contributor

Hi,

 

The script below will take care of tracking for both properties.

 

<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-XXXXX-1', 'auto');
  ga('create', 'UA-XXXXX-2', 'auto', 'newTracker');

  ga('send', 'pageview');
  ga('newTracker.send', 'pageview');
</script>

 

Don't forget to replace UA-XXXXX-1 and UA-XXXXX-2 with the real UA IDs.


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: Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 9
Follower ✭ ✭ ☆
so..instead of 2 separate codes..i have to only put this one single code?

Re: Is it allowed to have 2 google analytics account for 1 website?

Follower ✭ ✭ ☆
# 10
Follower ✭ ✭ ☆
will it affect my previous analytics readings?