Multi-tenant support with Google Analytics / Piwik + MVC?

Viewed 712

Is there any way to configure google analytics or Piwik to work with any domain / subdomain? I have a multi-tenant app that is accessed via URLs like the following:

tenant1.app.com
tenant99.app.com
appname1.com - points to tenant1.app1.com
appname2.com

so coding each tenant isn't an option, as they are constantly being added / changed. Ideally, we could just slap a <script> in the _Layout page of our MVC application and get reporting on each URL that's accessed, without specifying the url in the script. Is this possible with GA, or any free analytics tool?

2 Answers
Related