如何监控单页Web应用程序?

发布于 2025-01-01 05:03:09 字数 89 浏览 2 评论 0原文

我想知道如何监控单页网络应用程序,以便您可以看到用户在您的应用程序中做了什么,他访问了哪些“页面”等。

有点像谷歌分析,可以提供很多东西的统计数据。

I wonder how one would monitor a single page web app so you can see what the user does in your app, what "pages" he visited etc.

Kinda like Google Analytics with statistics for a lot of things.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

阿楠 2025-01-08 05:03:09

谷歌分析对此非常有用。查看自定义事件:http://code.google.com/apis/ Analytics/docs/tracking/eventTrackerGuide.html

与传统网站上的“设置后忘记它”类型的跟踪相比,它需要更多的工作,但它也非常简单。

Google Analytics is great for this. Check out custom events: http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html

It takes a fair amount more work than the "set it and forget it" type tracking you can do with traditional websites, but it's also pretty easy.

拥有 2025-01-08 05:03:09

它不会“正常工作”,您需要调用 trackPageView 以使请求计为综合浏览量并包含将包含的所有访问者信息(不是 trackEvent)。 这个要点是一个古老但流行的ajax导航解决方案,展示了如何调用trackPageView。它在新 url 的内容注入页面后立即调用,因此 Backbone.js 等框架中的等效项将在视图初始化时调用,例如 本指南中建议

It will not 'just work', you need to be calling trackPageView to make the requests count as pageviews and include all the visitor information that would be included (not trackEvent). This gist is an old but popular solution to ajax navigation showing how to call trackPageView. It is called right after the content from the new url is injected into the page, so an equivalent in a framework like Backbone.js would on view initialization, like suggested in this guide.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文