Web analytics

Last updated:

|Edit this page

Web analytics is currently an opt-in public beta. This means it's not yet a perfect experience, but we'd love to know your thoughts. Please share your feedback and follow our roadmap.

Web analytics enables you to easily track and monitor many of the most important metrics for your website.

Unlike product analytics, web analytics offers a more streamlined and focused experience. This is especially useful for marketers, content creators, or anyone used to tools like Google Analytics. It includes a dashboard that offers essential metrics, such as visitors, views, sessions, session duration, bounce rate, paths, referrers, and more.

Web analytics

Get started with web analytics

Getting started is a simple three-step process.

1. Install PostHog on your website

Follow the installation instructions to setup either the JavaScript snippet or the JavaScript Web SDK for the website you want to track.

Single page apps might require you to manually implement $pageview and $pageleave event capture for every navigation change. See our tutorials on how to do this in React, Next.js, Vue, and Svelte.

2. Enable the web analytics beta

In PostHog, click your profile icon in the top right and then click "Feature preview." In the feature preview modal, enable "Web Analytics Dashboard"

3. Go to the web analytics dashboard

Now, you can click the newly added web analytics tab to go to the dashboard.

Filtering your dashboard

Like other dashboards in PostHog, the web analytics dashboard is filterable. This means you can filter for data with certain event or person property values. Options include browser, path name, device type, country, and UTMs. Just click the "Add filter" button next to the date range at the top of the dashboard.

This enables you to dive into specific stats for regions, parts of the site, and specific marketing campaigns.

For more complex queries, you can still use the product analytics tab as usual.

Frequently asked questions

Have a question not covered here? Let us know.

What is the difference between web analytics and product analytics?

Web analytics is a streamlined experience for tracking and monitoring your most important website metrics. Product analytics is a more powerful and flexible experience for tracking your product.

Web analyticsProduct analytics

Dashboards

One, pre-builtUnlimited, customizable

Custom insights

Events

Pageview, pageleaveAny, custom

Properties

Limited, pre-definedAny, custom

Built for

Small teams, marketersEngineering, product, data teams

Use case

At-a-glance view of website trafficAnalysis of product usage and user behavior

Web analytics relies on a subset of the events and properties used by product analytics. This means you can use both in tandem.

How much does web analytics cost?

During beta, web analytics is no additional cost on top of product analytics. Events are used between both, and follow product analytics' pricing.

Where is my world map?

All good web analytics dashboards need to include a world map. Ours includes it too. If you can't see it, you need to enable the GeoIP app.

Do stats include bots and crawlers?

No, we automatically block bots and crawlers. You can see exactly which ones we block here.

Questions?

Was this page useful?

Next article

Data management

Below are the different types of data you'll come across in your PostHog instance. Events The event tab contains a list of all the events captured into your PostHog instance. They are sortable by name, last seen, and type (custom vs default). Each event also contains the top custom properties for that event including their type, tags, and an example. Event details Clicking on an event from this list shows more details about it such as: An editable description The raw event name First and…

Read next article