In a Nutshell
You can track subdomains within the same profile as the domain. These are the basic steps:
- Set up a new profile that will track all domains together. Make sure to preserve a master profile that tracks only the top-level domain. In order to do so, you'll need to add additional lines to your tracking code for the top domain and the subdomains. Learn more about creating duplicate profiles.
- Use a filter on the profile to distinguish between sub-domains.
- Modify the tracking code for the domain and any sub-domains you want to track together.
- Set up your links and form posts between all domains.
These instructions are intended for situations where you have URLs like the example below that you want to track as a single entity:
- www.example-petstore.com
- dogs.example-petstore.com
- cats.example-petstore.com
Please see Cross
Domain Tracking on Google Code for instructions on all kinds of cross-domain
tracking. Remember, if you are using the traditional
snippet, use the ga.js code example.