I’m trying to figure out what’s the best way to track subdomains. We have a website - xxx[dot]com where we allow users to register an account so the subdomain is created, let say yyy.xxx.com. Piwik tracking code is added automatically to the header of the index page for that subdomain.
How can I set up piwik, so I would be able to see the list of subdomain names and how many visits they had?
I’m looking for something like this:
yyy xxx com - had 6 visits
zzz xxx com - had 4 visits
aaa xxx com - had 3 visits and so on.
Please note, that the process is fully automated and I can’t add different piwik tracking codes to each subdomain name because we can have 1000 of users registering a day… not scalable.
If you track many subdomains in the same Piwik website, you might want to see the domain name directly in your Page Title reports. If you want to show support.example.org/Homepage instead of simply Homepage, check out the JS setDocumentTitle documentation.
You can change the name of a tracked page in piwik via javascript. E.g: