TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is there a good analytics tool for single page web apps?

8 点作者 monvural将近 13 年前
I was going to use Google Analytics, but it's driven by page views, and there is only 1 page in my app. Everything else is dynamic.<p>Is there another solution?

4 条评论

callmevlad将近 13 年前
Using something like Mixpanel, you should be able to track anything that happens in your JavaScript code. However, it's not just a insert-a-script-and-sit-back solution; you have to be diligent about the actions you want to track and actually add code to track them as they happen.
评论 #4230591 未加载
评论 #4230800 未加载
sunspeck将近 13 年前
Google Analytics might meet your needs if you script Events into your app.<p><a href="https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide" rel="nofollow">https://developers.google.com/analytics/devguides/collection...</a>
评论 #4251636 未加载
bialecki将近 13 年前
This is a hard question to answer in the abstract. What are the top 2-3 questions you want to answer?<p>If it's about understanding the users of your app and what they look like, GA probably wouldn't be a good choice even if you didn't have a single page app because it's tailored for tracking activity across all users, not activity broken down by user. (For instance, it's good at answering the question, "Which feature gets the most usage?" not, "Which feature is used by the most people?" and that's an important difference.)<p>Many analytical tools claim they can answer the latter question, but look for example use cases to make sure they're answering the right question. A little research up front can save you the time of integrating a service only to find it doesn't answer the questions you want answered.
bwang29将近 13 年前
"Is there another solution?" You could definitely start building some simple analytic functions into your product (even writing text files on your backend when some user behavior happen will work). Be flexible and focus on priority. It might be helpful to learn some linux commands like awk to quickly analyze your data. But this question depends much on your exact needs.