Welcome to WebmasterWorld Guest from 54.145.209.34

Forum Moderators: DixonJones & mademetop

Google Analytics

Can I Have Two Google Analytics Code on my Website?

   
2:34 pm on Sep 25, 2007 (gmt 0)

5+ Year Member



Hello there,

Can I use two Google analytics code on my website, and use two analytics account? Is it permitted, or does google obstruct one? Thanks. Swayam.

5:24 pm on Sep 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't know the answer to your question.

But, why do you want to do that? I can't think of a reason.

5:54 pm on Sep 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The answer to the original question is yes, you can do it. Be sure to include code that resets the account number between tag calls. You can find more information on the Google Analytics help site.
9:10 am on Sep 26, 2007 (gmt 0)

5+ Year Member



Thanks, I already did that and it works...
7:25 pm on Sep 26, 2007 (gmt 0)

10+ Year Member



Excuse my ignorance, but can you explain why you're using 2 Google Analytics?

Thanks

3:22 am on Sep 28, 2007 (gmt 0)

5+ Year Member



like this one?
_uacct = "UA-account-1";
urchinTracker();

_uacct = "UA-account-2";
urchinTracker();

_uacct = "UA-account-3";
urchinTracker();

1:08 pm on Sep 28, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can think of lots of reasons. A shared shopping cart (two clients) is one.
2:53 pm on Oct 3, 2007 (gmt 0)

5+ Year Member



sorry, i came back a little late to this thread... i wanted to do that for a very silly reason, assumed it was working. But then the one account got screwed up very soon...

it was not like urchin tracker # #*$!XX-1 followed by urchin tracker # #*$!xx-2

but, urching tracker # #*$!#*$! and urchin tracker # YYYYYY

so, if anybody is thinking of trying the same on your website for shopping cart or whatever reason -- DON'T!

5:18 pm on Oct 3, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Isn't that what the reset code (referred to above) was supposed to prevent?
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month