homepage Welcome to WebmasterWorld Guest from 54.145.209.42
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

    
One Analytics Code for multiple sites
samit



 
Msg#: 4071785 posted 8:07 am on Feb 1, 2010 (gmt 0)

Hello,

Recently I am working on a client's site. Some on page work was already done and the Google Analytics code already installed.

But suddenly I discovered that the client is using an analytics code that is present in 3 other sites. Means 4 of the client's sites are using same code.

I am surprized after I noticed that. Generally I know through one analytics ID we can handle multiple web sites in it, but each and every site should be separately added and should have separate accounts. never heard that one analytics code can be used in more than one site.

So what I know, is wrong. Isn't it?

 

makemetop



 
Msg#: 4071785 posted 9:11 am on Feb 1, 2010 (gmt 0)

It is up to what the user is trying to do really.

There is no technical reason to not have the same code on multiple sites, often, specifically if all sites belong to one company.

Of course, some people do it by mistake and wonder why their analytics does not work properly.

Adamus

5+ Year Member



 
Msg#: 4071785 posted 2:47 pm on Feb 1, 2010 (gmt 0)

It does pollute your Google Analytics, as standard reports will show aggregate data instead of data per site. This can severely hinder you in analysing each site's performance and gain insights in to what you need to improve.

You can work around this without putting new tracking codes on each site by creating a separate profile in Google Analytics for each site, and apply a filter to each to only count traffic to a specific domain name.

For example if you have site1.com, site2.com, etc, all using the same tracking code, you set up a different profile in GA for each site. Then for the profile for site1.com, you build a filter:

Filter type: Custom filter > Include
Filter field: Hostname
Filter pattern: (^site1\.com|\.site1\.com)

And then you do the same for site2.com, site3.com, etc. Each profile will then only show the data for traffic to that particular domain.

Receptional

WebmasterWorld Administrator receptional us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4071785 posted 8:29 am on Feb 2, 2010 (gmt 0)

I've also seen my analytics code (yahoo, not Google) scraped along with my content and found the scraper site in my logs!

Now that's one dim scraper programmer :)

Alexei

5+ Year Member



 
Msg#: 4071785 posted 1:18 am on Feb 5, 2010 (gmt 0)

Adamus,

Great point. But I think when creating a filter for a new profile we can go with "Predefined filter" rather than "Custom filter".

Say, I want to filter out a local site, site1.de. Here are parameters for the "Predefined filter" [pic.im...]

Include > traffic from the domains > that are equal to > site1.de

Adamus

5+ Year Member



 
Msg#: 4071785 posted 10:48 am on Feb 10, 2010 (gmt 0)

Alexei, I'm not sure that predefined filter will work. I believe that filter refers to traffic source, not the on-site traffic. With that predefined filter you can exclude or include visitors from specific domains & IP addresses, so you can filter out visitors from your own company network for example.

Alexei

5+ Year Member



 
Msg#: 4071785 posted 11:19 am on Feb 10, 2010 (gmt 0)

Adamus, it make sense.

Can you post a screenshot of the filter you built? I.e.

Filter type: Custom filter > Include
Filter field: Hostname
Filter pattern: (^site1\.com|\.site1\.com)

I'm not sure how to do it from your example.

Thanks!

Adamus

5+ Year Member



 
Msg#: 4071785 posted 4:59 pm on Feb 10, 2010 (gmt 0)

Alexei, sure, we had to build a filter like this for one of the biggest sites I manage as the GA code was used across two domain names. See the screenshot for the filter: [visualscript.co.uk ]

And this is the text in the Filter Pattern field:
^belfasttelegraph\.co\.uk|\.belfasttelegraph\.co\.uk

Hope this helps.

Alexei

5+ Year Member



 
Msg#: 4071785 posted 6:27 pm on Feb 11, 2010 (gmt 0)

Many thanks, Adamus.

I've built the filter - waiting for the first data to come.

Alexei

5+ Year Member



 
Msg#: 4071785 posted 8:44 am on Feb 12, 2010 (gmt 0)

Adamus, the filter worked for me. Thanks and cudos!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved