# 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 DOM like below:

<figure><img src="https://2208415352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqzhBzJakUXsoGTJarvBa%2Fuploads%2F2IGhUVYFYwx03dwftqW7%2Fgoogle-analytics.JPG?alt=media&#x26;token=78061090-dbe1-4154-b437-fc81ee49f3c1" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2208415352-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqzhBzJakUXsoGTJarvBa%2Fuploads%2FMZvUJY9xx4N4jeQwSVCF%2Fimage.png?alt=media&#x26;token=46f4a981-e862-4602-ae6a-03b5ee9a63ee" alt=""><figcaption></figcaption></figure>
