为网站创建者提供的网络分析解决方案
我的网站是较小网站的创建者, 我希望对每个用户进行单独的分析。
有没有办法自动将 Google Analytics 添加到网站?
据我所知,Google API 中没有这样的选项。
还有其他选择吗?这可以用 Piwik 完成吗?
I have site which is a creator of smaller websites,
and I'd like to have separate analytics for each user.
Is there a way do automate adding the Google Analytics to the website?
As far as I can see, there's no such options in Google API.
Any other alternatives? Can this be done with Piwik?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
通过 Piwik,您可以使用 Analytics API:http://piwik.org/docs/analytics-api/ 自动创建网站,然后自动获取 javascript 代码并将其添加到您的网站中。然后,您可以自动创建一个有权访问该网站的用户,并且您的用户将能够登录并在 Piwik UI 中查看其网站统计信息。您将需要调用 API 几次,并且需要一些开发知识(至少知道如何调用 REST API 等)
With Piwik, you can use the Analytics API: http://piwik.org/docs/analytics-api/ to create websites automatically, then fetch the javascript code automatically and add it into your websites. You can then create a user automatically with access to this website and your users will be able to login and enjoy their websites stats in the Piwik UI. You will need to call the API a few times and will need a bit of development knowledge (at least know how to call REST API etc.)
请阅读本文,其中讨论了页面级自定义变量。向下滚动到报纸不同部分的示例。在您的情况下,您将使用一个自定义变量来唯一标识“子站点”。
一些促销内容。听起来您正在开发内容管理系统(CMS)并希望为子网站所有者提供“分析”页面。如果是这种情况,请查看 embeddedanalytics.com (免责声明:我与他们合作)。该网站使您能够将 google 分析图表嵌入到您的网站中,而无需了解 API 的具体细节。虽然它尚未在我们的网站上发布,但我们还有多种方法来支持上述 CMS 类型系统。请访问我们,如果您对如何将其纳入 CMS 感兴趣,请给我们留言。
Read This Article which discusses Page-level Custom Variables. Scroll down to the example of the different sections of a newspaper. In your case you would use a custom variable which would uniquely identify the "sub-site".
Some promotional content. Sounds like you are developing a Content Management System (CMS) and want to offer the sub-site owners a "Analytics" page. If this is the case check out embeddedanalytics.com (Disclaimer: I work with them). This is a site which enables you to embed google analytic charts into your site without getting into the nuts and bolts of the API. While it is not yet published on our site, we also have many ways to support CMS type systems described above. Visit us and if you are interested in how it can be absorbed into a CMS drop us a message.
Infunl(免责声明:我是联合创始人)目前处于内测阶段,将提供灵活的 API,为每个微型站点的实时分析仪表板提供基础。这可以通过 后端属性、分组或按分段分组。我很想听听这是否可以解决您的问题。
Infunl (Disclaimer: I am a co-founder), which is currently in private beta, will provide API with flexibility to provide foundation for per-micro-site live analytics dashboards. This can be done with backend attributes, grouping or group by segmentation. I would love to hear if this could solve your problem.