Privacy-focused web analytics
Web analytics is one of the tools that makes your product self-driving: the lightweight measurement layer that feeds agents traffic context. Built to natively work with session replay, feature flags, experiments, and surveys.
Install with AI in a single prompt
Paste into your terminal or code editor and make AI do the work.
What does it do?
Web Analytics is a pre-built dashboard for website traffic – visitors, pageviews, sessions, bounce rate, referrers, UTMs, and Core Web Vitals – without the GA4 maze. Drop in a snippet (or use a no-code install), get real-time data, and optionally skip cookies entirely. Same events power product analytics and session replay when you want to go deeper.
Who is it for?
Web Analytics is used across teams depending on your role.
How do I use it?
There are a few ways to explore Web Analytics.
Check traffic without leaving your editor
Ask PostHog AI about traffic from Cursor, Claude Code, VS Code, or any MCP-compatible agent – then keep coding with the answer in context.
Top features
Track visitors. Cookies not required.
If you're privacy-focused, our cookieless option means you don't need to add a cookie banner just for your web analytics.
AI prompts
Query web analytics data to check traffic trends, investigate anomalies, and build dashboards. Works in PostHog AI (in-app chat), PostHog Desktop (our AI code editor), and in your product editor (using the MCP). Already signed in? Click a prompt to try it.
Traffic overviewquery-web-overview
Breakdownsquery-web-stats
Web vitalsquery-web-vitals
Build & saveinsight-create
Install
Add a snippet, SDK, or no-code install – then open the pre-built dashboard. Autocapture handles pageviews; cookieless mode is optional.
Web frameworks
Popular
All
Feature comparison
Questions?
Answers
There are a few ways you can get answers to specific questions about Web Analytics.
- Check the docs
We have an entire docs-wizard dedicated to docs gardening.
- Search the community forums
With over 100 discussions about Web Analytics, there's a good chance your answer is already answered!
- Ask PostHog AI
It's an incredibly useful AI chat that understands the product, docs, community questions, our codebase, GitHub issues, and industry knowledge.
- Talk to a human
Dedicated humans are standing by and ready to assist. Best for questions about volume pricing, terms, and sexy legal stuff.
Works with other PostHog tools
Use Web Analytics with these other PostHog apps to maximize shareholder value.
Works with...
Product Analytics
Go deeper than a dashboard by building your own insights and SQL queries from scratch.
Session Replay
Get more context by watching what users actually do on your site. Spot the nuances that quantifiable data doesn't tell you.
Surveys
Get even more context by sending surveys to users. Arrange interviews. Ask questions. Serve pop-ups.
Get started – free
No credit card required. You get the first 1,000,000 events free every month, then pricing starts at $0.00005/event and reduces with volume.
