问题
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.
回答1:
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.
回答2:
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.
来源:https://stackoverflow.com/questions/2151190/web-analytics-for-platform-with-custom-events