Welcome to WebmasterWorld Guest from 184.108.40.206
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?
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.
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.