Question

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:

  1. I would like to be able to see both stats for individual sites and aggregate stats for all sites.
  2. I would like to track custom events, like how many contributions users have made.
  3. I would like support for any number of subdomains.
  4. I would like to be able to give my customers limited access to see the data only their site.
  5. 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.

Was it helpful?

Solution

try youcalc.com, they have readymade analytics apps based on google analytics api, and you can download their tool for customizing existing apps, or even create new ones.

OTHER TIPS

The question Can I use the same Google Analytics tag for a blog subdomain of my site as the main site? has a solution with Google Analytics that fits several of your requirements, but not all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top