I m building a platform that produces websites. Think wordpress.com as a similar example. Each site is going to be a subdomain of my domain like abc.mydomain.com or xyz.mydomain.com.
I have a few requirements for analytics of which I haven t been able to meet all of:
- I would like to be able to see both stats for individual sites and aggregate stats for all sites.
- I would like to track custom events, like how many contributions users have made.
- I would like support for any number of subdomains.
- I would like to be able to give my customers limited access to see the data only their site.
- I would like to be able to set this all up in an automated way, ideally via an API, when a new site is created.
I know with Google Analytics you can create filters and profiles, which might solve 3) and/or 4) but I don t think this is exposed via the API AND I believe there is a limit on profiles of 50.
Also if I can t satisfy 4) I probably can t use Google Analytics at all as my clients would likely want to use it, and I don t think you can run two GA trackers at the same time. That said, I would happily sacrifice 4) if the others were met as clients could still use their own GA account.
Of course I can just build a cron script to parse the various DBs and log files, but I m hoping not to reinvent the wheel. Plus I would miss out on all the nice graphs and extras that most services have.
Any platform developers have any insight here?
Thanks.