Dynamic Number Insertion (DNI): How Website Call Tracking
|

Dynamic Number Insertion (DNI): How Website Call Tracking Works?

If phone calls are a big part of how your business gets leads, you need to know which ads and channels are actually driving those calls. That’s the problem Dynamic Number Insertion solves.

DNI shows a different tracking number to different website visitors, based on where they came from. When they call it, you find out exactly which ad, keyword, or channel brought them to your site — something a single phone number on your website could never tell you.

This guide covers what DNI is, exactly how it works behind the scenes.

What Is Dynamic Number Insertion?

Dynamic Number Insertion (DNI) is a call tracking method that automatically swaps the phone number shown on your website depending on how each visitor arrived.

  • Someone who found you through a Google ad might see one number. 
  • Someone who came from organic search sees another. 

Both numbers ring your actual business line — the visitor never notices anything unusual.

The point isn’t to confuse callers. It’s to let you tie every phone call back to the exact marketing source that produced it, the same way a UTM tag tells you which campaign drove a website visit.

Types of Number Insertion

A static number is one fixed phone number shown to everyone, everywhere — your business card, your website footer, your Google Business Profile. It’s simple, but it tells you nothing about where a caller came from. Every call lands in the same bucket.

A dynamic number changes depending on the visitor’s source. It’s still connected to your real business line, but the number itself becomes a data point. This is the core difference that makes DNI useful for marketing attribution in a way static numbers can’t match.

How Does Dynamic Number Insertion Work?

DNI runs through a short script added to your website. Here’s what happens from the moment someone lands on your page to the moment their call gets logged.

1. A visitor lands on your website

Someone clicks a Google ad, a Facebook post, or simply types your business name into a search engine and lands on your site.

2. DNI Identifies the Traffic Source

A small JavaScript snippet on your site reads where the visitor came from — using the URL parameters, the referring site, or campaign tags — to figure out which channel sent them.

3. Website Displays a Tracking Number

Based on that source, the script pulls a number from your tracking number pool and swaps it in wherever your phone number normally appears — the header, footer, or contact page.

4. Visitor Calls the Tracking Number

The visitor sees this number as if it were your normal business line and calls it like they would any other number.

5. Call is Forwarded to the Business

The tracking number isn’t a separate line — it’s just a middleman. As soon as it’s dialed, the call is instantly forwarded to your real business phone.

6. System Records Attribution Data

While the call connects, the tracking platform logs which source, campaign, or keyword that number was tied to. Over time, this builds a clear picture of which marketing efforts are actually generating calls.

Types of Dynamic Number Insertion

Not all DNI setups track at the same level of detail. Which type you use depends on how granular you need your data to be.

i. Source-Level DNI

This is the simplest setup. One tracking number is assigned per marketing channel — one for Google Ads, one for Facebook, one for your Yelp listing, and so on. Every visitor from that channel sees the same number. It tells you which channel is producing calls, but not which specific ad or keyword within that channel.

ii. Session-Level DNI

Here, a number is assigned to a visitor for the length of their browsing session on your site. If they call before leaving, you can see which page, channel, or keyword prompted that specific call. Once they leave the site, the number is released back into the pool for the next visitor.

iii. Visitor-Level Call Tracking

This is the most detailed option. A number is assigned to an individual visitor and stays linked to them across multiple sessions, not just one visit. It captures their full journey — every channel, page, and keyword they interacted with — before they eventually pick up the phone.

iv. Campaign-Level Tracking

Rather than tying numbers to visitors, this method assigns a dedicated number to a specific campaign, whether that’s online or completely offline — a print ad, a flyer, a billboard. It’s useful for tracking placements that don’t involve a website visit at all, and it’s often used alongside visitor-level DNI to cover both digital and offline sources.

How to Set Up Dynamic Number Insertion?

Setting up DNI sounds technical, but the process is fairly linear. Here’s how it’s typically done.

Step 1: Choose a Call Tracking Platform

Pick a provider that supports DNI — most call tracking platforms do. This choice affects your pricing, number availability, and how deep your reporting can go.

Step 2: Purchase Tracking Numbers

Buy a set of numbers from your provider to build your tracking pool. Local numbers work well for location-based businesses; toll-free numbers are common for pools that need to cover a wider area.

Step 3: Set Your Tracking Sources

Define which channels or campaigns you want to track — Google Ads, organic search, a specific landing page, or an offline campaign. This tells the system how to sort incoming traffic.

Step 4: Create a Number Pool

Group your tracking numbers into a pool sized to your traffic. You need enough numbers to cover your peak number of visitors at the same time, not your total daily visitor count.

Step 5: Install the DNI JavaScript

Add the tracking script to your website, usually through your site’s global header, a tag manager, or a plugin, depending on your platform.

Step 6: Replace Website Phone Numbers

Once installed, the script automatically finds and replaces your visible phone number wherever it appears on the page, including click-to-call links.

Step 7: Configure Call Forwarding

Set the destination number that tracking calls should forward to — usually your main business line, a specific team, or a call queue.

Step 8: Connect Analytics

Link your call tracking data to Google Analytics or your CRM so that call data sits alongside your other marketing metrics instead of living in a separate system.

Step 9: Test the Number Swap

Load your site from a few different sources (a Google ad, a direct visit, an organic search result) and confirm a different number appears each time, and that all of them correctly forward to your business.

Troubleshooting: What If the Number Doesn’t Swap?

If your number stays static after setup, check that the script is loading on every page (not just some), that no other tracking script is conflicting with it, and that cookies aren’t being blocked in the browser you’re testing with — blocked cookies can interfere with how sessions are recognized.

FAQs on Dynamic Number Insertion

Q1. Can Dynamic Number Insertion work with VoIP?

Yes. Tracking numbers can be forwarded to a VoIP-based business phone system the same way they’d forward to a landline or mobile number.

Q2. What is a static number?

A static number is a single, fixed phone number that stays the same for every visitor, no matter where they came from. 

Q3. Does dynamic number insertion affect local SEO rankings?

Not when it’s set up correctly. Search engines read your real, permanent phone number from your site’s underlying code and structured data, while only the visible, on-page number changes for human visitors.

Q4. How many tracking numbers do I need?

It depends on how many visitors are on your site at the same time, not how many visits in total. A site with a lot of daily traffic but only a handful of concurrent visitors at any given moment might only need a small pool — the numbers get reused constantly as visitors come and go.

Final Words

Dynamic Number Insertion turns your phone number into a source of real marketing data instead of just a way for people to reach you. Once it’s set up, you stop guessing which campaigns are driving calls and start seeing it directly in your reports — the same clarity you already have for clicks and page views, now extended to your phone line.

Read More : What Is Call Screening? How It Works on Android and iPhone

Similar Posts