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

# Google Tag Manager (GTM)

> How to add InZone Script to your GTM account

## Installation

Follow these steps to add the script to your site via GTM:

* Click **Tags** > **New**.
* Give the tag a name (Ex: InZone Script).
* Click **Tag Configuration** and select **Custom HTML**.
* Copy the code below and paste into the HTML field.
* Click **Triggering** and select **All pages**.
* Hit **Save** and publish your changes.

```html theme={null}
<script src="https://cdn.inzone.globres.io/js/widget.js" async></script>
```

### Options

You can pass the following props to the script to customize the default states:

<ParamField body="data-organization" type="string" required="true">
  Your organization ID in InZone. This information is required to retrieve your
  organization's campaigns.

  Get your organization ID from your [InZone organization settings page](https://inzone.globres.io).
</ParamField>

<ParamField body="data-init-on-load" type="boolean" default="true">
  Set whether the script should load by default.
</ParamField>

<ParamField body="data-consent-analytics" type="boolean" default="true">
  Set whether analytics consent should be disabled by default.
  [Learn more about consent.](/inzone/script/consent-management)
</ParamField>

<ParamField body="data-consent-country" type="boolean" default="true">
  Set whether country tracking consent should be disabled by default.
  [Learn more about consent.](/inzone/script/consent-management)
</ParamField>

### Why use `async`?

The `async` attribute ensures that the script loads in the background, independently of other elements on the page.
This prevents any delay in rendering your website content and ensures that the banner campaigns will load without
slowing down your site.
