# I can't find where to put my Google Analytics tracking ID

The Google Analytics integration for GitBook allows you to track traffic in your published sites from your Google Analytics dashboard, giving you a fuller picture of how your customers interact across your sites and apps throughout their lifecycle.

{% hint style="info" %}
Ensure the integration has been configured in **each site** you want to gather insights on.
{% endhint %}

You can input the tracking ID in two ways:&#x20;

* from the sidebar
* from site settings

### Add Google Analytics tracking ID from the sidebar

1. Navigate to the **Integrations** tab in the sidebar.
2. Access the Google Analytics integration from the list of installed integrations and click on the tab **Configuration.**
3. Next, click **Pick a site** and choose where the integration should run.&#x20;
4. Click on the options menu next to the site name and select **Configure in site**.
5. Add your `UA-XXXXXXXXX-Y`Google Analytics tracking ID in the tracking ID field.

Once complete, your GitBook site should send data to your Google Analytics account. You can verify this by checking your Google Analytics dashboard for incoming data.

{% hint style="warning" %}
Please remember that the data might take some time (up to 48 hours) to appear in your Google Analytics dashboard.
{% endhint %}

### Add Google Analytics tracking ID directly from the site

1. In GitBook, navigate to the selected **site** where the tracking ID should be added.&#x20;
2. In the **site**, navigate to the **integrations** option in the top right-hand corner.
3. In the list of available integrations, select Google Analytics and click on the settings icon next to it.
4. Once in the configuration window, add the tracking ID (`UA-XXXXXXXXX-Y)` in the "tracking ID" field.

Once complete, your GitBook site should send data to your Google Analytics account. You can verify this by checking your Google Analytics dashboard for incoming data.

{% hint style="warning" %}
Please remember that the data might take some time (up to 48 hours) to appear in your Google Analytics dashboard.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook-open-v2-preview.gitbook.workers.dev/url/gitbook.com/docs/help-center/integrations/integrations-troubleshooting/where-do-i-put-my-google-analytics-tracking-id.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
