Web analytics

Last updated:

|Edit this page

Web analytics is currently an open 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.

Web analytics works without capturing person profiles. This means if you are primarily using PostHog for web analytics, it can be significantly cheaper for you.

To do this, set your JavaScript Web person_profiles config option to identified_only like this:

Web
posthog.init(
'<ph_project_api_key>',
{
api_host: 'https://us.i.posthog.com',
person_profiles: 'identified_only'
}
)

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. Go to the web analytics dashboard

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

Questions?

Was this page useful?

Next article

Web analytics

Web analytics is currently an open 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…

Read next article