You ship a feature and the Product Owner asks whether anyone uses it. Your logs say the server returned 200. They don't say who clicked the button, where users gave up, or which page nobody opens.
Several good tools answer that question, and each one answers a different version of it. Pick the tool that fits your question and where your app runs, rather than the one the last project used.
Work down the tree and stop at the first answer that fits.
flowchart TD
Start(["You need usage data"]) --> Q1{"Is it a marketing question,<br>such as where visitors<br>come from?"}
Q1 -->|Yes| GA["Google Analytics"]
Q1 -->|No| Q2{"Do you need session replay,<br>feature flags or<br>experiments?"}
Q2 -->|Yes| Q3{"Must the data stay<br>on your own servers?"}
Q3 -->|Yes| PHS["PostHog, self-hosted<br>(unsupported)"]
Q3 -->|No| PH["PostHog Cloud"]
Q2 -->|No| Q4{"Where does the app run?"}
Q4 -->|Azure| AI["Application Insights"]
Q4 -->|AWS| RUM["CloudWatch RUM"]
Q4 -->|Elsewhere| AI
Q4 -->|On-premises| Q5{"Can usage data<br>leave your network?"}
Q5 -->|Yes| AI
Q5 -->|No| PHS2["PostHog, self-hosted<br>(unsupported)"]Figure: Choosing a usage analytics tool
Tip: Add Microsoft Clarity beside any of these when you want heatmaps of where people click on a public page.
| Tool | Best for | Session replay | Free tier | AI assistant |
|---|---|---|---|---|
| Application Insights | Errors, performance and usage in one place | No | 5 GB a month | Azure Copilot |
| PostHog | Product analytics, replay, flags and experiments | Yes | 1M events and 5K recordings a month | PostHog AI |
| Google Analytics | Marketing and where visitors come from | No | Free | Analytics Intelligence |
| Microsoft Clarity | Heatmaps and session replay | Yes | Free, no limits | Copilot in Clarity |
| CloudWatch RUM | Web vitals, errors and journeys on AWS | Yes, opt-in | 1M events trial | None |
Figure: Usage analytics tools compared
| Product | Tool | Why |
|---|---|---|
| TinaCMS | PostHog | Product analytics and session replay on TinaCloud |
| SSW Website | Google Analytics and Application Insights | Marketing traffic, plus errors and performance on the server |
| SSW Rules | Application Insights | Errors, performance and page usage in one place |
| TimePro | Application Insights | Errors, performance and page views for the Angular app on Azure |
Application Insights tracks usage at two levels. Out of the box you get users, sessions and page views. Custom events go further and let you follow users as they move through your app.
Figure: Easily track and compare custom events
Add a few lines of code at the hot points of your app to send custom events. See Application Insights API for custom events and metrics. If the custom events blade feels limiting, export the data to Power BI with Using Azure Log Analytics in Power BI.
PostHog puts product analytics, session replay, feature flags and experiments in one tool. You can count what users did and then watch a recording of how they did it. TinaCMS uses PostHog for TinaCloud.
Figure: The TinaCloud onboarding funnel in PostHog shows which step loses new users
For a worked example, see the PostHog case study in using an analytics framework to manage exceptions.
Google Analytics shows how visitors find your site, which campaigns bring them and which pages they land on. Use it on public websites where marketing owns the questions. See collecting and analyzing website data with Google Analytics.
Microsoft Clarity records sessions and builds heatmaps of where people click and scroll. It is free with no traffic limits, so it suits public pages where you want to see what confuses people. See tracking website heatmaps.
CloudWatch RUM collects web vitals, JavaScript errors and user journeys from the browser. Use it when the app already runs on AWS and the team works in CloudWatch.