Forum Moderators: DixonJones

Message Too Old, No Replies

Using Google Analytics code on a second domain

Gogle analytics

         

alanc

4:25 pm on Jan 18, 2008 (gmt 0)

10+ Year Member



Hello

I have a website for which I'd like to add some google tracking code. As the customer progresses through the site there is a link to an information page which is a separate domain and server. To the
customer it wont really appear any different in terms of look and feel. (The domain in the address bar may change but thats not an
issue).

I want to use the same tracking code on this single page as on the main site as this single page links back to the main site for customer. Its just a single page with more information. (I know it could be better to have it within the main site but thats not possible)

Is this possible to do? Do I just add the same code to the one page site as on the main site?

====================================================================

My second questions resides around having tracking code for 2 different accounts on the same pages. Is this allowed? My situation is
that I am offering a product in conjunction with another company. Its their website.

I have space within some of their pages to advetise my product and provide information on it.

I need to be able to track visits to those pages as I'll run an Adword
campaign to try and drive business to it so I need to see my ROI from
any sign-ups. I cant have access to their Analytics account as it has sensitive information on other areas not related to me. I was going to setup an Analytics account and have them add my code to their page but can a webpage has 2 sets of google analytics code?

I'd welcome any feedback on this please.

Thanks
Alan

Marcia

12:07 am on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



One page or ten, I'd use different tracking code for a different domain.

encyclo

12:07 am on Jan 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To answer the second question first, you can only define one Analytics code per page, not two.

For the first issue, I'm not aware of any direct way to combine the results from what are effectively two separate sites. It may be possible to concoct a workaround with unique iframes on every page which are called from the primary domain and which contain the Analytics code.