Skip to main content

Web Analytics Overview

Web analytics lets you track and watch key measures for your website easily. It is different from product analytics because it's simpler and more direct, making it great for marketers, web site maintainers, or anyone familiar with tools like Google Analytics.

With Web Analytics and Statsig Dashboards you can easily gather insights such as number of visitors, views, sessions, how long sessions last, error rates, usage journey, and more.

image

Getting Started

Follow these simple steps to get started with Web Analytics.

Install Statsig script on your website

...

Get YOUR_CLIENT_KEY from Project Settings -> Keys & Environments. Reveal the Client API Key, copy, and paste it over the [YOUR-API-KEY] in the snippet above

image

Release your changes

Once your changes are live, you'll start to see the events flowing in your metrics page: https://console.statsig.com/metrics/events

Considerations

For single page apps, or for more complex scenarios, look up how to log events using Javascript.

Exploring using Metrics Explorer

In Metrics Explorer (https://console.statsig.com/metrics/explore), you can dig deeper and explore your events by using complex filters and dimensions. You can then explore your analysis to your dashboard.

More information on using Metrics Explorer like Funnels and Retention is here.

image

Advanced Setup

If you need to add additional configurations, metadata about the user, or want to access the full StatsigClient to check feature gates and experiments or log events, you can used the advanced setup. The script tag above will automatically initialize the SDK, but if you remove your SDK key you can manually configure your integration.

...