Nimbata Help Center
Go to website
Back
Articles on:Dynamic Number Insertion (DNI)
Install, configure, and troubleshoot DNI for accurate session-based call attribution.

Categories

  • Getting Started
  • Tracking Numbers
  • Dynamic Number Insertion (DNI)
  • Call Flows
  • Form Tracking
  • Data Tools, Tracking Sources & Attribution
  • Reports & Analytics
  • Workflows
  • Integrations
  • Account & Billing
  • Compliance & Number Verification
  • Frequently Asked Questions
Script Installation
  • DNI script 101: what is dynamic number insertion?
    Defining Dynamic Number Insertion (DNI) Dynamic Number Insertion (DNI) is a JavaScript script you install once on your website. When a visitor lands, Nimbata temporarily assigns a tracking number from your pool to their session. That number replaces your regular business number for as long as they browse. When thFew readers
  • DNI script 101: how to install and configure it
    A guide on how the Nimbata Dynamic Number Insertion works.Popular
  • How to activate the DNI script via HTML
    How to activate Nimbata via HTML.Some readers
  • How to activate the DNI script via Wordpress
    How to activate Nimbata via Wordpress.Popular
  • How to activate the DNI script via Google Tag Manager
    How to activate Nimbata via the Google Tag Manager.Popular
Swap Configuration & Attribution
  • DNI: testing visits (Google Ads, direct, organic)
    Before going live, it's worth testing that your swap groups behave correctly for each traffic source you're tracking. Because Nimbata only swaps a number when the session matches the source assigned to a swap group, you need to simulate each source type to verify it independently. How to test a Google Ads visit Nimbata detects paid search sessions by reading the gclid parameter that Google appends to ad click URLs when auto-tagging is enabled. To simulate this without clicking a real aFew readers
  • How to set up swap groups
    A quick guide on how to set up swap groups in Nimbata.Few readers
  • How to set up span tag
    How to set up span tag The span tag method gives Nimbata an explicit target to swap, rather than scanning the page for a matching number. Use it when auto-detection is unreliable. For example, when your number is rendered dynamically by JavaScript, a page builder, or a CMS template. How it works When Span Tag is selected as the swap type, Nimbata's script finds <spanelements with the correct class name after the page loads and replaces their contents with the assigned trackingFew readers
  • How to set up custom cookie capture
    How to create and use a custom cookie with Nimbata.Few readers
  • How to rename swap groups
    How to change the names of your swap groups in Nimbata.Few readers
  • How many DNI codes can you generate?
    How many DNI codes can you generateFew readers
DNI Troubleshooting
  • DNI: caching and CDN issues (Cloudflare, WordPress caching, server cache)
    The Nimbata DNI script must execute fresh on every page visit. It needs to read the current visitor's session and source in real time to decide which number to show. If your site is serving a cached copy of the page or script, the swap may fail silently or behave inconsistently between visitors. Why caching causes swap failures Caching works by storing a copy of your page (or its assets) and serving that copy to subsequent visitors instead of generating a fresh response. This is great foFew readers
  • DNI: swap target formatting rules and common mistakes
    The swap target is the phone number string you enter in Nimbata to tell the DNI script which number on your page to replace. If it doesn't match the number in your page's HTML exactly, the script finds nothing to replace and does nothing, the number on your site stays static. This is one of the most common causes of numbers not swapping. How swap target matching works When the Nimbata script loads, it scans the page's HTML for a text string that matches your swap target. The matchFew readers
  • DNI: Full troubleshooting guide - 10 reasons why numbers are not swapping on your website
    Things to check if the DNI script is installed on your website but tracking numbers are not swapping the numbers on your website.Few readers

Not finding what you are looking for?

Chat with us or send us an email.

  • Chat with us
  • Send us an email
© 2026 Nimbata Help Center