What you get
Web analytics focuses on website metrics that marketing and growth teams need:- Traffic metrics: Pageviews, unique visitors, sessions, bounce rate
- Referrer tracking: See where visitors come from (organic search, social, direct)
- Page performance: Top pages, entry/exit pages, time on page
- Real-time visitors: Live view of who’s on your site right now
- Device breakdown: Mobile vs desktop vs tablet traffic
Web analytics uses the same PostHog snippet as product analytics. No additional installation required.
Dashboard overview
The web analytics dashboard provides a high-level view of your site traffic:Top-level metrics
See total visitors, pageviews, session duration, and bounce rate at a glance. Compare to the previous period to spot trends.
Traffic sources
Break down where visitors arrive from: organic search, paid ads, social media, referrals, or direct traffic.
Key features
Real-time visitors
See who’s on your site right now:- Navigate to Web analytics → Live
- View active sessions in real-time
- See current page paths and session duration
- Filter by referrer source or device type
UTM parameter tracking
Track marketing campaigns with UTM parameters:utm_source: Traffic source (google, twitter, newsletter)utm_medium: Marketing medium (cpc, social, email)utm_campaign: Campaign name (summer_sale, product_launch)utm_content: Specific ad or linkutm_term: Paid search keywords
- View UTM data
- Create UTM links
Filter web analytics by UTM parameters to measure campaign performance:
- Open Web analytics → Marketing
- See breakdown by source, medium, and campaign
- Compare conversion rates across campaigns
Web vitals
Monitor page performance with Core Web Vitals:- LCP (Largest Contentful Paint): Loading performance
- FID (First Input Delay): Interactivity
- CLS (Cumulative Layout Shift): Visual stability
- Identify slow-loading pages
- Track performance over time
- Compare vitals across devices
- Find pages that need optimization
Web vitals require modern browsers that support the Web Vitals API. Coverage is approximately 90% of users.
Path analysis
Understand how visitors navigate your site:- Go to Web analytics → Page reports
- Select a page to analyze
- View entry pages (where visitors came from)
- View exit pages (where they went next)
- See drop-off points in the user journey
Privacy and compliance
Web analytics is built for privacy compliance:- No cookies required: Track sessions without cookie consent banners
- IP anonymization: Optionally anonymize IP addresses
- GDPR friendly: Full control over data storage and retention
- No third-party sharing: All data stays in your infrastructure
Configure privacy settings
Configure privacy settings
Set privacy options in your PostHog snippet:
Marketing analytics
Connect web analytics to marketing attribution:Track campaign ROI
Connect web analytics to conversion events. See which campaigns drive signups and revenue, not just traffic.
Compare channel performance
Break down conversion rates by referrer source. Identify your highest-quality traffic channels.
Optimize landing pages
See bounce rates and session duration per landing page. Find underperforming pages that need work.
Attribution analysis
Use product analytics to build multi-touch attribution models with web analytics as the foundation.
Common use cases
- Content marketing
- Paid advertising
- Product pages
Goal: Measure blog performance
- Filter web analytics to
/blog/*paths - Track top posts by pageviews
- Monitor bounce rate per post
- See referrer sources for each article
- Track conversion from blog to signup
Integration with product analytics
Web analytics works seamlessly with product analytics:- Start with web analytics for visitor tracking
- Add product analytics for post-signup behavior
- Build complete funnel from first visit to power user
- Use same installation, same data model, same interface
Migration from Google Analytics
Switching from GA is straightforward:- Install PostHog: Add snippet alongside GA initially
- Compare data: Run both tools in parallel for 1-2 weeks
- Rebuild dashboards: Recreate your key GA reports in PostHog
- Remove GA: Drop GA once you’re confident in PostHog data
PostHog counts sessions differently than GA4. Expect slight variations in session metrics during comparison.
Best practices
Use UTM parameters consistently
Use UTM parameters consistently
Create a UTM naming convention and stick to it. Use lowercase, underscores instead of spaces, and descriptive campaign names.
Set up goal tracking
Set up goal tracking
Don’t just track visits. Define conversion goals (signups, purchases, downloads) and measure them alongside traffic metrics.
Monitor performance regularly
Monitor performance regularly
Check web vitals weekly. Page speed directly impacts conversion rates and SEO rankings.
Segment by device type
Segment by device type
Mobile users behave differently than desktop. Always check if metrics vary significantly by device.