# Analytics

Setting up Google Analytics in SaasAble is very simple. You need to update a tag ID in .env:

{% code title=".env" %}

```properties
...

## Google Analytics
NEXT_PUBLIC_ANALYTICS_ID=
```

{% endcode %}

This will render your script in the DOM like below:

<figure><img src="/files/AL1NPH2S62EU4QmHbJc2" alt=""><figcaption></figcaption></figure>

The value of the tag can be obtained from your Google Analytics account:

<figure><img src="/files/4vA6VrtK7MoJbNAEvReG" alt=""><figcaption></figcaption></figure>


---

# 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://phoenixcoded.gitbook.io/saasable/ui-kit/development/analytics.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.
