Lead Distro AILead Distro AI
Back to blog
Call TrackingDynamic Number InsertionAttribution

Dynamic Number Insertion (DNI) Call Tracking: How It Works

Dynamic number insertion (DNI) call tracking swaps your site's phone number per visitor, so each call ties to its source. Setup, pool sizing, and SEO.

Rafael Hernandez

Rafael Hernandez

Founder & CEO

Ex-Microsoft SWE · $10M+ PPL ad spend

20 min read
Dynamic Number Insertion (DNI) Call Tracking: How It Works - Lead Distro AI
Rafael Hernandez

I hope you enjoy reading this blog post. If you want to try Lead Distro AI for free, click here.

Author: Rafael Hernandez | Founder & CEO of Lead Distro AI

Last Updated: November 2, 2026

Dynamic number insertion (DNI) is a call tracking technique that automatically replaces the phone number on your website with a unique tracking number based on how each visitor arrived. When that visitor calls, the platform forwards the call to your real line and logs the source, campaign, keyword, or session that produced it.

A small JavaScript snippet runs when the page loads, asks the call tracking platform which number this visitor should see, and swaps the default number before the page finishes painting. The caller never notices the swap. The result is simple: instead of guessing which ad, page, or channel drove a phone call, you know. DNI is how marketers close the attribution gap between online traffic and offline phone calls, and it is the foundation that pay-per-lead and pay-per-call agencies build call routing and billing on top of.

DNI matters because phone calls are high-intent and hard to measure without it. According to Invoca's DNI guide, phone calls convert to revenue 10 to 15 times more than web leads, yet a call with no tracking number looks like it came from nowhere. DNI gives that call a paper trail. Below is how the number swap works, how to size a number pool, how to set DNI up, how it fits with Google Ads and SEO, and how Lead Distro AI's dynamic number insertion feature feeds call routing and billing from one platform.

Key Takeaways

  • Dynamic number insertion swaps the phone number on a web page with a unique tracking number tied to the visitor's traffic source, campaign, or individual session.
  • A JavaScript snippet does the swap on page load, before the page paints, then forwards the call to your real line and logs the source behind it.
  • Source-level DNI uses one number per channel (Google, Facebook, email), while session-level DNI assigns a number per visitor for keyword and session detail.
  • Size a session-level pool from your busiest hour: visitors per minute multiplied by the minutes a number stays assigned gives the numbers you need.
  • Call tracking is not bad for SEO when your real number stays in the page's HTML and in your directory citations, and the tracking number is swapped in by script after the page loads.
  • DNI powers attribution and routing for pay-per-lead and pay-per-call agencies, lead brokers, and lead buyers and sellers who need to prove which calls came from where.
  • Lead Distro AI includes DNI on every plan, starting with the $147/month Call Tracking plan, and call tracking usage is billed on top: a per-number monthly fee plus a per-minute rate for inbound calls.

What Is Dynamic Number Insertion?

Dynamic number insertion is a call tracking method that displays a different phone number to different website visitors so each inbound call can be traced back to its marketing source. Instead of hard-coding one static number into your site, DNI lets the call tracking platform decide, in real time, which number a given visitor sees.

A small drawing of a browser window labeled "your website" shows a phone number box

As Twilio's glossary puts it, DNI is a call tracking feature where a unique phone number is tied to each ad source, which helps marketers analyze offline behavior much the way they track online behavior with cookies. That connection is the whole point. A marketer running Google Ads, Facebook, email, and organic search at the same time can finally see which of those channels generated the call, rather than lumping every call into one untracked bucket. Dynamic number call tracking (often shortened to call tracking DNI) is one stage of the wider pipeline covered in our guide to what is call tracking, which walks through how numbers, routing, and attribution fit together.

How the Number Swap Works

The mechanics are straightforward. You place a small JavaScript snippet on your site. When a visitor loads a page, the snippet fires, checks how that visitor arrived (referrer, UTM parameters, or session), and asks the call tracking platform which number to display. The platform returns a tracking number, and the script replaces the default number on the page before it finishes rendering.

When the visitor dials that tracking number, the platform answers, records the call against the stored source data, then forwards the call to your real business line. The caller never knows a swap happened, and the experience is identical to calling a normal number. Per CallRail's overview, this is what lets you show different numbers to visitors depending on whether they came from Google Ads, social, email, or direct traffic.

Source-Level vs Session-Level DNI

There are two main ways to assign numbers, and the choice is a trade-off between cost and detail. Source-level DNI gives one tracking number to each traffic source: one number for Google organic, one for Facebook, one for email. It uses few numbers and is cheap to run, but you only see attribution at the channel level.

Left column labeled "source-level" shows three small phone icons with labels "Google", "Facebook", "email"

Session-level DNI assigns a unique number to each individual visitor session, pulled from a pool of numbers. This unlocks keyword-level and visitor-level data, such as which PPC keyword and which pages led to the call. The catch is cost: DNI relies on pools of numbers, and as Invoca notes, the bigger the pool, the more expensive the service. Platforms manage this by recycling numbers from inactive sessions back into the pool, so a modest pool can still cover many concurrent visitors.

Number Pools and Swap Targets

A number pool is the set of tracking numbers a platform rotates through for session-level tracking. When more visitors are on the site than there are numbers in the pool, the platform reuses numbers from sessions that have gone idle. CallRail's help documentation describes a website pool that dynamically swaps numbers based on how each lead routes to your site, capturing visitor-level data like pages visited and PPC keywords.

The swap target is the number the script looks for on the page in order to replace it. By default the swap target is your real destination number, so any place that number appears in your site's markup gets swapped automatically. Getting the swap target and pool size right is what keeps attribution accurate; too small a pool and concurrent visitors share numbers, which muddies the data.

How Many Tracking Numbers Does a DNI Pool Need?

Pool size is the setting most teams guess at. Each concurrent visitor needs their own number for as long as they might call, so the pool has to cover your busiest hour, not your average one. The iovox pool setup checklist gives the math in two steps: divide visitors per hour by 60 to get visitors per minute, then multiply by the session time (the minutes a number stays assigned before it rotates) to get numbers per pool. Multiply by the number of pools for the total.

Here is a worked example. A landing page that peaks at 120 paid visitors an hour sees 2 visitors a minute. With a 10-minute session window, that pool needs 20 numbers. NinjaCat offers a simpler rule of thumb in its dynamic number pool docs: take peak hourly session traffic and divide by four, so 20 sessions an hour needs 5 numbers. The two methods give different answers because they assume different session lengths, so start from your own peak traffic and session time.

A pool that is too small makes two visitors share a number, and the call can no longer be matched to one session. A pool that is too large costs money for numbers that sit idle. Because Lead Distro AI bills a monthly fee per tracking number, right-sizing the pool is a direct cost decision, not just a data-quality one.

How to Set Up Dynamic Number Insertion

Setup follows the same order on most platforms. Work through it one Source or campaign at a time.

  1. Pick the level of tracking. Use source-level DNI for channel reporting, and session-level DNI when you need keyword data from paid search.
  2. Provision tracking numbers. Assign one number per source for source-level tracking, or a pool sized with the formula above for session-level tracking.
  3. Install the script. Add the DNI JavaScript snippet to every page that shows a phone number, ideally once in the site template or through a tag manager.
  4. Set the swap target. Tell the script which number on the page to replace, usually your real business number, and write it the same way everywhere on the site.
  5. Keep the click data. Make sure UTM tags and the Google click ID (gclid) survive to the landing page, so the script can store them with the call.
  6. Place a test call. Open the page from a tagged test URL, confirm the number swaps, call it, and check that the call log shows the source and keyword you expect.
  7. Connect the outcome. Send qualified calls back to your ad platform and into your routing rules, so bids and buyers both act on real calls.

In Lead Distro AI these steps happen in one account: you provision local or toll-free US numbers per Source, install one script, and the call that follows is routed, bid, and billed in the same call log. The DNI setup guide for Lead Distro AI walks through it in the product.

DNI and Google Ads Call Tracking

Google Ads has a built-in version of the same idea. Google's phone call conversion tracking documentation explains that website call conversions allow "a Google forwarding number to dynamically replace your website number for users who clicked an ad." You set a minimum call length, and every call that lasts at least that long counts as a conversion. That covers Google Ads clicks only. A third-party DNI script covers every source on the page, including organic search, social, and email, and can still send qualified calls back to Google Ads as offline conversions tied to the gclid.

One detail to know before launch: Google's call assets help page notes that if your website uses DNI or third-party call tracking, your phone number changes dynamically depending on the user, and that changing your code formatting will not resolve "Unverified Phone Number" disapprovals for dynamic numbers. If a call asset is flagged, follow Google's verification steps on that page rather than editing your markup. For the full Google Ads workflow, including gclid import and bidding on calls, see our guide to Google Ads call tracking.

Is Call Tracking Bad for SEO?

No, not when it is set up the standard way. The fear comes from a real risk: showing search engines a different phone number than your business listings use. NAP consistency (your business Name, Address, and Phone matching everywhere) is a local ranking signal, and an old-style setup that hard-coded tracking numbers into pages or pasted them into directories did break it. SEO call tracking done with DNI avoids that.

What crawlers see. The swap runs in the visitor's browser after the page loads, driven by how that visitor arrived. Google does render JavaScript: per Google's JavaScript SEO basics, a headless Chromium executes the page's scripts before Google indexes the rendered HTML. So the practical rule is to keep your real business number in the page's HTML and as the script's default, so any visit with no tracked source, including a crawler, sees the same canonical number as your business listings. WhatConverts makes the same point: because the main business number is hard-coded in the HTML source, you maintain NAP consistency.

Google Business Profile: primary vs tracking numbers. Google's Business Profile guidelines say the phone number "must be under the direct control of the business" and ask for a local number over a central call center line where possible. Darren Shaw, founder of local SEO firm Whitespark, recommends putting the tracking number in the Primary phone field and the real number in the first Additional phone field. "It is safe, and even recommended, to incorporate a call tracking number on your Google My Business listing," Shaw says. Every other citation (Yelp, Apple Maps, industry directories) keeps the real number. Sterling Sky's myth-busting analysis reaches the same verdict: the call tracking SEO panic is overblown.

Page speed. Page speed is a ranking factor, so load the DNI script asynchronously. An async script does not block rendering, so the page paints at full speed and the number updates a moment later.

Common MythThe Reality
DNI makes Google index a fake numberGoogle indexes the real number when it is the HTML and script default
Call tracking breaks NAP consistencyNAP stays intact if citations keep the real number
Tracking numbers must go in your directory listingsDirectories keep the real number; Google Business Profile can list a tracking number as Primary with the real number as Additional
The script always slows your siteAn async script has negligible speed impact

SEO-safe phone call tracking checklist: use DNI for on-site display (never hard-coded tracking numbers), keep the real local number in the HTML and every directory citation (on Google Business Profile, at least as an Additional phone), load the script asynchronously, then verify by viewing the page source and running a PageSpeed Insights test. "Done right, the crawler never even knows a swap happened," says Rafael Hernandez, Founder and CEO of Lead Distro AI. "You keep your rankings and you finally know which campaign produced which call."

Why Pay-Per-Lead and Pay-Per-Call Agencies Use DNI

For agencies, DNI is not just a reporting nicety, it is the input that makes paid call campaigns work. A pay-per-call agency advertises tracking numbers, and DNI lets it spin up and assign those numbers per source so it can prove which traffic produced which billable call. That proof is what justifies the payout a buyer pays per call.

DNI also feeds the routing layer. Once a call is tied to a source and qualified through an IVR, the platform can run a buyer waterfall and connect the caller to the buyer whose rules and price it matches, the same logic covered in our guide to call routing software. Pay-per-lead agencies use the same data to attribute form fills and calls in one system, which is why many run lead and call distribution software rather than separate tools. For the broader model, see how pay-per-call marketing turns tracked calls into revenue, and how pay-per-call compares to pay-per-lead.

DNI vs Static Tracking Numbers

A static tracking number is a single number printed somewhere, such as on a billboard or a specific landing page, that never changes. It tells you a call came from that one placement, and nothing more. DNI is the dynamic version: numbers change per visitor or source so one web page can attribute calls to many channels at once. On mobile, pair DNI with a click-to-call button so a visitor can dial the swapped number in one tap.

CapabilityStatic Tracking NumberSource-Level DNISession-Level DNI
Numbers usedOne fixed numberOne per channelA pool, one per visitor
Attribution detailSingle placementChannel levelKeyword + session level
Setup effortLowestLowModerate
CostLowestLowHigher (larger pool)
Best forOffline ads, single landing pagesMulti-channel campaignsPPC and SEO with keyword tracking

Most agencies use a mix: static numbers for offline placements where a script cannot run, and DNI for everything on the website. To see how DNI feeds buyer routing and billing in one place, walk through the Lead Distro AI product tour.

How Lead Distro AI Uses DNI

Lead Distro AI ships dynamic number insertion as part of its call tracking, then connects it directly to distribution. One script swaps numbers from a pool you assign to each Source, and stores the Google click ID and UTM tags, including the utm_term keyword, with the call. Qualified calls can upload to Google Ads as offline call conversions. From there, Lead Distro AI scores every lead and every call against your rules before routing, so a high-intent tracked call can flow into a buyer waterfall while a lower-tier web lead routes round robin.

Tracking numbers are on every plan. The Call Tracking plan is $147 per month for calls only. Starter at $297 per month adds lead distribution with Round Robin, Weighted, and Priority/Waterfall routing, and Growth at $497 per month adds Ping-Post, running your own ring tree, and white-label. Call tracking is usage-based: a per-number monthly fee plus a per-minute rate for inbound calls, layered on top of the flat plan price. The 7-day free trial gives full access, so you can run a tracked, swapped call end to end. For a side-by-side of dedicated call tracking platforms, see our best call tracking software comparison.

FAQ

What is dynamic number insertion in simple terms?

Dynamic number insertion (DNI) is a call tracking technique that automatically shows different phone numbers to different website visitors based on how they found your site. A JavaScript snippet swaps the default number on the page with a unique tracking number, then forwards calls to your real line while logging the source behind each call. It lets you tie an offline phone call back to the exact ad, campaign, keyword, or session that produced it, which is how marketers measure the ROI of channels that drive calls.

How does the DNI number swap actually work?

A small JavaScript snippet on your site fires when a page loads. It reads how the visitor arrived, using the referrer and UTM parameters or a session ID, then asks the call tracking platform which number to display. The platform returns a tracking number and the script replaces the page's default number before it finishes rendering. When the visitor dials that number, the platform records the call against the stored source data and forwards it to your business line, so the caller's experience is unchanged.

What is the difference between source-level and session-level DNI?

Source-level DNI assigns one tracking number per traffic source, such as one for Google, one for Facebook, and one for email. It is cheap and simple but only shows channel-level attribution. Session-level DNI assigns a unique number to each visitor session from a pool of numbers, which reveals keyword-level and visitor-level detail like which PPC term and pages led to the call. Session-level costs more because larger visitor counts need larger number pools, though platforms recycle idle numbers to keep pools efficient.

How many tracking numbers do I need for DNI?

It depends on your busiest hour and how long a number stays assigned to one visitor. A common formula, published in the iovox pool setup checklist, divides peak visitors per hour by 60 to get visitors per minute, then multiplies by the session time in minutes. A page that peaks at 120 visitors an hour with a 10-minute session needs about 20 numbers. Source-level tracking needs only one number per channel. With too few numbers, visitors share one and the call cannot be matched to a single session.

Is call tracking bad for SEO?

No, when it is set up the standard way. The DNI swap happens in the visitor's browser after the page loads, so your real business number stays in the page's HTML and in your directory citations. Keep the real number as the script's default for visits with no tracked source, including crawlers, which keeps your name, address, and phone number consistent everywhere. Call tracking only hurts SEO when tracking numbers are hard-coded into pages or pasted into directory listings in place of the real number.

Should I put a call tracking number on my Google Business Profile?

You can, in one specific way. Whitespark founder Darren Shaw recommends putting the tracking number in the Primary phone field and your real number in the first Additional phone field, so Google still connects the profile to your citations. Google's guidelines require a number under the business's direct control. Every other listing, such as Yelp, Apple Maps, and industry directories, should keep your real local number so NAP consistency holds.

Does call tracking slow down my website?

Not noticeably, when the DNI script loads asynchronously. An async script does not block rendering, so the page paints at full speed and the phone number swaps a moment later. Because page speed is a ranking factor, choose a lightweight, async call tracking script, then check your Core Web Vitals in PageSpeed Insights before and after you install it.

Does DNI work with Google Ads?

Yes, in two ways. Google Ads has its own website call conversion tracking, which lets a Google forwarding number dynamically replace your website number for visitors who clicked an ad, and counts calls above a minimum length you set as conversions. A third-party DNI script covers every source on the page, not just Google Ads, and can send qualified calls back to Google Ads as offline conversions tied to the click. Lead Distro AI supports that upload.

Does DNI work for pay-per-call agencies?

Yes. Pay-per-call agencies rely on DNI to spin up and assign tracking numbers per traffic source, which lets them prove which campaign produced each billable call. That attribution justifies the payout buyers pay per qualified call. DNI also feeds the routing layer: once a call is attributed and qualified through an IVR, the platform can run a buyer waterfall and connect the caller to the buyer whose rules and price it matches. Lead Distro AI combines DNI, scoring, and distribution in one platform for both pay-per-lead and pay-per-call agencies.

How much does dynamic number insertion cost?

Cost depends on how many tracking numbers you use and your call volume, because DNI relies on pools of phone numbers. Source-level setups use few numbers and cost little; session-level setups need larger pools and cost more. With Lead Distro AI, tracking numbers are on every plan, starting with the $147-per-month Call Tracking plan, and call tracking is usage-based: a per-number monthly fee plus a per-minute rate for inbound calls. The 7-day free trial lets you test call tracking on live traffic before committing.

Conclusion

Dynamic number insertion is the quiet engine behind phone call attribution. By swapping the number on your website with a unique tracking number per visitor or source, DNI turns an untraceable phone call into a measured conversion you can tie back to a specific ad, keyword, or session. Source-level DNI keeps things cheap and channel-focused; session-level DNI trades a larger number pool for keyword and visitor detail, and sizing that pool from your busiest hour keeps the data clean. For pay-per-lead and pay-per-call agencies, that attribution is what makes paid call campaigns provable and routable. Lead Distro AI ships DNI with its usage-based call tracking, wired straight into rule-based lead scoring and distribution, so the same tracked call that proves your marketing is also routed and sold without leaving the platform.

Want every inbound call tracked, routed, and sold from one platform? Start your 7-day free trial and run a tracked, swapped call end to end.

About the Author

Rafael Hernandez, Founder & CEO of Lead Distro AI
Rafael Hernandez

Founder & CEO of Lead Distro AI & Great Marketing AI

UC Berkeley graduate and former software engineer at Microsoft. Rafael built Lead Distro AI after managing over $10M in ad spend for performance marketing agencies (pay-per-lead and pay-per-call), including running campaigns for Neil Patel. He combines deep software engineering expertise with hands-on performance marketing experience to build tools that help these agencies scale profitably.

Follow:

About Lead Distro AI

Capture, Route, and Sell Every Lead, Call, and Appointment

Capture, route, and sell leads, calls, and appointments from one platform, with funnels, call tracking, ping-post, and billing built in. Set it all up in minutes by chatting with AI.

  • Funnels

    Quiz, form, appointment, VSL, and webinar templates

  • Call Tracking

    Tracking numbers, call recordings, and per-call billing

  • 4 Distribution Methods

    Priority/Waterfall, Round Robin, Weighted, Ping-Post

  • Ping-Post and Live Bidding

    Sell each lead and call to the highest bid

  • Real-Time P&L

    Revenue, cost, and profit per campaign

  • Partner Portal

    Your Destinations see their own leads and results

Start Free Trial
7-day free trialCancel anytime5-minute setup