Web Analytics for Platform with Custom Events

让人想犯罪 __ 提交于 2019-12-12 09:07:42

问题


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.


回答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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!