> ## 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).

# DNI script 101: how to install and configure it

Setting up Dynamic Number Insertion (DNI) involves configuring your account first, then publishing the script to your website. Complete the steps below in order.

# The 5-step setup process

Before your script can go live, you must complete the account configuration workflow.

### Step 1. Acquire your tracking number

* Go to [Tracking > Numbers](https://app.nimbata.com/tracking/numbers).
* Click **+ Add**. 
* Choose the source you want to track.
* Pick a number type (Local or Toll-Free).
* Select a number from the list.

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

|| Tip: Choose a number that matches your real business area code to maintain brand consistency.

Detailed Guide: [**How to add your first tracking number**](https://help.nimbata.com/en/article/how-to-add-your-first-tracking-numbers-1nkvnmf/)

### Step 2. Name your tracking number

* Give your number a descriptive name. 
* You can set this during setup or later by clicking the edit (pencil) icon next to any number in [Tracking > Numbers](https://app.nimbata.com/tracking/numbers).

### Step 3. Add a destination number

* Go to [Tracking > Destinations](https://app.nimbata.com/tracking/destinations).
* Click **+ Add**. 
* Enter the phone number where calls should be forwarded. 
* This is where your business receives the call.

Detailed Guide: [**How to add a destination number**](https://help.nimbata.com/en/article/how-do-i-add-a-destination-number-hdksuz/)

### Step 4. Set up a call flow

* Go to [Tracking > Call Flows](https://app.nimbata.com/tracking/call-flows).
* Create a new call flow using the **Simple Call Flow** template. 
* Select your **Destination Number** and save. 
* Then go back to [Tracking > Numbers](https://app.nimbata.com/tracking/numbers).
* Assign the call flow to your tracking number.

Detailed Guide: [**How to set up call flows**](https://help.nimbata.com/en/article/how-do-i-set-up-call-flows-1731pv5/)

### Step 5. Test your setup

* Dial the tracking number from your mobile phone and confirm it rings at your destination. 
* Then, check [Activity > Calls](https://app.nimbata.com/activity/calls) to verify the test call appears in your logs.

---

# Publishing the DNI Script

Once your account is configured (all five steps above are complete), you're ready to go live.

### Step 6. Open the script page

Go to [Tracking > Tracking Code](https://app.nimbata.com/tracking/tracking-code) in Nimbata.

### Step 7. Configure your swap targets

This is the most critical step. 
You need to tell Nimbata which phone number on your website to replace.
* **Auto-detection:** Nimbata can scan your page automatically.
* **Span tag (recommended for accuracy):** Wrap your website number in a span tag: `<span class="nimbata">123-456-7890</span>`

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/screenshot-2026-03-17-180024_1vlj1v4.png)

You can also toggle additional options here, such as **Single Page Application (SPA)** support or adjusting the **cookie duration**.

Detailed Guide: [How to set up span tag](https://help.nimbata.com/en/article/how-to-set-up-span-tag-q57l1u/)

### Step 8. Publish the script

Click **Save & Publish**, then add the script to your site using one of these methods:

**Google Tag Manager:** Paste the script into a Custom HTML tag.
See [How to activate the DNI script via Google Tag Manager](https://help.nimbata.com/en/article/how-to-activate-the-dni-script-via-google-tag-manager-1m7bg14/)

**WordPress:** Install the [Nimbata Plugin](https://wordpress.org/plugins/nimbata-call-tracking/).
See [How to activate the DNI script via WordPress](https://help.nimbata.com/en/article/how-to-activate-the-dni-script-via-wordpress-jehob4/)

**Manual HTML:** Paste the script as the last item just before the `</body>` section on every page.
See [How to activate the DNI script via HTML](https://help.nimbata.com/en/article/how-to-activate-the-dni-script-via-html-delq5r/)

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/screenshot-2026-03-17-175714_1qp2wtc.png)

---

# Verifying the Installation

* **Live test:** Visit your site; if you're tracking all channels, the number should swap immediately.
* **Google Ads test:** Visit `www.yoursite.com/?gclid=test` to force a swap for paid search numbers.
* **Built-in checker:** Use Nimbata's website URL checker, located just below the DNI script in Tracking > Tracking Code.
---

🎉 Numbers swapping correctly? You're live. Next, consider setting up swap groups if you want to track multiple numbers or channels independently.
Detailed Guide: [**How to set up swap groups**](https://help.nimbata.com/en/article/how-to-set-up-swap-groups-1kng9t9/)
Troubleshooting: [**Why are numbers not swapping on my website?**](https://help.nimbata.com/en/article/why-are-numbers-not-swapping-on-my-website-dfo4sa/)

