views:

105

answers:

0

On my site I have complicated situation and want ask for advice how to do tracking best of all.

On my site I have 2 main high level domains, for example www.domain1.com and www.domain2.com. They are working with the same app code, just domain names are different.

www.domain1.com is available for public as well as integrated client sites. www.domain2.com is available for public users and NO any subdomains.

Each client will have something like www.domain1.com/client/my.clientSite.com which will be available via my.clientSite.com as well. Again, all this redirects into the same web application.

My tasks are:

  1. Track traffic on GA for www.domain1.com and www.domain2.com separately. I am using the same tracking code and filters by domain name inside GA account for that. Inside my app code there is following:

    var pageTracker = _gat._getTracker(googleAnalyticsAccount); pageTracker._setDomainName("none"); pageTracker._setAllowLinker(true); pageTracker._trackPageview();

  2. For www.domain1.com I need to filter out all traffic which goes to www.domain1.com/client/* Again I've done this via filters inside GA account.

  3. For each client site I need separate double tracking: track with my GA account, track with client's GA account.

What is the best practice to implement point 3 correctly?