> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting up analytics tracking

> View visitor data and connect Google Analytics, Tag Manager, Clarity and more.

Track your visitors and understand how they use your website.

## Built-in analytics

Open your website and click the **Analytics** tab. Choose a date range, then review:

* **Top pages**: what visitors open most
* **Traffic sources**: where visitors come from
* **Devices**: which screen sizes to check first

## Connect a tracking tool

Webfast connects to popular analytics tools from **Settings** > **Integrations**:

| Tool | What it's for | What you'll need |
| - | - | - |
| Google Analytics | Traffic and audience data | Measurement ID (`G-XXXXXXXXXX`) |
| Google Tag Manager | Managing all your tags in one place | Container ID (`GTM-XXXXXX`) |
| Microsoft Clarity | Heatmaps and session recordings | Project ID |
| Hotjar | User behavior analytics | Site ID |
| Facebook Pixel | Measuring ad campaigns | Pixel ID |

## Google Analytics

**1. Create a property**

Go to [analytics.google.com](https://analytics.google.com), create a property and copy your Measurement ID.

**2. Connect it to your website**

In Webfast, open **Settings** > **Integrations**, click **Connect** next to **Google Analytics**, paste your Measurement ID and save.

**3. Check it works**

Publish your site, visit it, and check the **Realtime** report in Google Analytics.

## Google Tag Manager

**1. Create a container**

Go to [tagmanager.google.com](https://tagmanager.google.com), create a web container and copy the Container ID.

**2. Connect it to your website**

Open **Settings** > **Integrations**, click **Connect** next to **Google Tag Manager**, paste the Container ID and save.

## Microsoft Clarity

**1. Create a project**

Go to [clarity.microsoft.com](https://clarity.microsoft.com), create a project and copy the Project ID.

**2. Connect it to your website**

Open **Settings** > **Integrations**, click **Connect** next to **Clarity**, paste the Project ID and save.

## Tips

* If you use Google Tag Manager, add your other tags there instead of connecting each tool separately.
* Use Clarity or Hotjar for heatmaps, and Google Analytics for traffic data.
* If you need a cookie consent banner for tracking tools, add one with [custom code](https://docs.webfast.ai/tutorials/custom-code.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.