> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nimbata.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to activate the DNI script via Google Tag Manager

Use this method if your site uses Google Tag Manager. 
Nimbata has an official template in the Community Template Gallery.
No raw script code needed.

**Before you start:**
* Complete Steps 1-5 of [DNI script 101: how to install and configure it](https://help.nimbata.com/en/article/dni-script-101-how-to-install-and-configure-it-1l7zt51/).
* Click **Save & Publish** before setting up the GTM tag.

### Step 1. Add the Nimbata template from the Community Template Gallery

In your GTM workspace:
* Click **Add New Tag.**
* Give it a name (e.g. "Nimbata").
* Click **Choose a tag type.**
* Select **Discover more tag types in the Community Template Gallery**. 
* Search for **Nimbata.**
* Click **Nimbata Call Tracking.**
* **Add to workspace > Add**.

### Step 2. Enter your DNI ID

* Go to [Tracking > Tracking Code](https://app.nimbata.com/tracking/tracking-code) in Nimbata.
* Copy the **DNI ID** highlighted in green in the script tag. 
* Back in GTM, paste it into the **Dynamic Number Insertion ID** field.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_130caj3.png)

### Step 3. Set firing options and trigger

Under **Advanced Settings**: 
* Set **Tag firing options** to **Once per event**.
* Create a new trigger.
* Select **Page View - DOM Ready.**
* Set it to fire on **All DOM Ready events**.

### Step 4. Save and publish

Save the tag and submit your GTM workspace changes.

---

🎉 The tag will now fire on every page load. Place a test call to confirm it's working.
Troubleshooting: [**Why are numbers not swapping on my website?**](https://help.nimbata.com/en/article/why-are-numbers-not-swapping-on-my-website-dfo4sa/)
