Mobile app version of vmapp.org
Login or Join
Ann8826881

: Tracking multiple domains and subdomains on one analytics profile I'm looking to set up Google Analytics for a system we have. Essentially, we have a multi tenant system where everything shares

@Ann8826881

Posted in: #Analytics #GoogleAnalytics

I'm looking to set up Google Analytics for a system we have. Essentially, we have a multi tenant system where everything shares a single code base but might have extra pages or not.

What I think I'm looking to do is listed on Google's documentation for cross domain tracking. However, each site / subdomain would be considered a different site, so I think I can leave out the bit about transferring visitor data between domains. I don't need to know if I user has come from site A to site B. I'm happy to consider it a unique user. It would be rare to happen, anyway, due to how the site is created.

Host names for the sites that come to the application can be in the format of:


abc.mydomain.com
def.mydomain.com
something-different.com
abc.something-different.com
... anything


I realise that the first thought is probably 'If you say they're different sites, then track them with different accounts' but we're hoping to have the analytics for the entire application under one tracking ID, with profiles that have filters applied to them for the different sites.

This question is similar: One multi-domain analytics profile, or one analytics profiles per domain? but the answer from Jeff talks about the solution for different domains and the solution for different subdomains. Not both.

From the documentation, I think I just need to have the following

_gaq.push(['_setDomainName', 'none']);


So:


Am I off the mark with what I'm proposing to do?
Does anyone have experience with this sort of scenario - and what was your solution?
I say I'm looking to disregard the visitor data transfer, but is it something I need?
By setting '_setDomainName' to 'none', does this make the domain on the account mean nothing?


Thanks in advance.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ann8826881

1 Comments

Sorted by latest first Latest Oldest Best

 

@Barnes591

You could achieve it using custom segments. there are limits on how many segments you can have.

A custom segment allows you to say something like: Where hostname like '%domain.com%'

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme