How Dynamic Number Insertion Works for Call Tracking
Dynamic number insertion (DNI) is a script that swaps the phone number shown on your website for a tracking number, based on where the visitor came from. When that visitor calls, the system knows which source, campaign, or page brought them, and you can tie the call to marketing.
It works well when set up carefully, and it goes wrong in a few predictable ways, mostly around number pools, caching, and how your real number appears elsewhere.
Vendors Covered in this Article
Disclosure: We may earn a commission if you buy through some links on this page. It doesn't change what we recommend.
How does the number swap actually happen?
In outline, the process runs like this:
- Your call tracking vendor gives you a small script to place on your site, along with a pool of tracking numbers.
- When a visitor lands, the script reads where they came from, such as a campaign tag, a search click, or a referring site.
- It replaces the number shown in the designated places on the page with a tracking number assigned to that visitor's session or source.
- When the visitor calls, the system matches the incoming call to the number, then logs the source, the time, and often the landing page.
- Your reports show calls by source, and data can pass to your CRM or ad accounts.
CallRail and WhatConverts both offer this approach. Features and details differ, so confirm what your plan includes.
Source-level or session-level: which do you need?
There are two common designs:
- Source-level numbers: one tracking number per channel, such as one for paid search and one for organic. It's simple and needs few numbers, but it can't tell you which individual visitor or keyword led to the call.
- Session-level numbers: each visitor session gets its own number from a pool, so you can trace a call to a specific visit, page path, and keyword.
Source-level is often enough for a small business with a handful of channels. Session-level is worth it when you spend heavily on paid search and want to know which keywords and ads produce calls.
How big should the number pool be?
A session-level pool has to cover the number of visitors who might be on your site at once, plus the time a number stays reserved after someone leaves. If the pool runs out, visitors may see a default number and calls go unattributed.
Say your site averages a few dozen simultaneous visitors at its peak, and the platform holds each number for a set time after the session. You'd want a pool comfortably larger than that peak, with headroom for a campaign spike. Your vendor's dashboard usually shows pool usage, so watch it after big sends or ad launches and add numbers before you run short. Ask the vendor how they recommend sizing for your traffic.
What are the common pitfalls?
Watch for these:
- Cached pages that show an old tracking number to new visitors, which misattributes calls.
- Numbers in images or PDFs, which the script can't swap.
- Click-to-call buttons and links that need the script to update them too.
- Missing coverage, such as a number that appears in the footer but not the contact page.
- Your real number showing up in search listings and directories that don't use the script. Keep the main business number consistent across your listings, and confirm with the vendor how they handle local search visibility.
- Privacy and consent: the script uses cookies or session data, so make sure your consent banner and notices cover it. Healthcare practices face extra rules on what a tracking script may collect, so get legal advice first.
How does it fit with landing page tools and ads?
DNI pairs naturally with landing page personalization. Some landing page platforms also swap text or numbers to match the search keyword, as described in Unbounce Smart Traffic and dynamic text tools. If you use both, document which script controls the number so they don't conflict.
For ads, feed call outcomes back where the platform allows it, so bidding can learn from calls that turned into customers. If you sell products online and want to show trust signals to Google shoppers, see Google seller ratings requirements, which is a separate matter from phone tracking. To choose a vendor, compare features in WhatConverts vs CallRail vs CallTrackingMetrics.
What Good Looks Like
A good DNI setup swaps every visible and clickable number, has a pool sized for peak traffic, and keeps the main business number consistent everywhere else.
Building The Capability (5-Stage Skill Ladder)
How to Get Started
Disclosure: We may earn a commission if you buy through some links on this page. It doesn't change what we recommend.
Fits when you want number swapping by source or session with call reports tied to campaigns.
Fits when you want tracked calls logged next to forms and chats in the same lead report.
Frequently Asked Questions
Does dynamic number insertion hurt SEO?
It can if your real number is inconsistent across listings, since local search values consistent business details. Keep your main number in directories and listings, and ask your vendor how they handle search visibility.
How many tracking numbers do I need?
For source-level tracking, one per channel. For session-level tracking, enough to cover your peak simultaneous visitors plus the reservation time. Your vendor's usage reports help you size the pool.
Can DNI track calls from printed materials?
Not by swapping, since the script only works on web pages. For print or billboards, use a dedicated static tracking number tied to that piece.
What happens if the script fails to load?
Visitors see the default number on the page, and calls from those visits go unattributed. Keep the default number valid and answered, and monitor for a sudden drop in tracked calls.
About the numbers
This guide doesn't quote a sourced benchmark. Figures in it are estimates or general guidance, so check them against your own numbers.
Related Guides
Unbounce Smart Traffic: How It Works and When to Use It
Unbounce Smart Traffic routes each visitor to the page variant they're most likely to convert on. See how it differs from A/B testing and when to use it.
Google Seller Ratings: What Qualifies and How to Get Them
Understand what Google seller ratings are, what makes a store eligible, where reviews can come from, and how to build your review program the right way.
WhatConverts vs CallRail vs CallTrackingMetrics: Call Tracking Comparison
Compare WhatConverts, CallRail, and CallTrackingMetrics: dynamic number insertion, multi-touch lead attribution, form tracking, agency billing, and ROAS.
Static vs. Dynamic Number Insertion for Call Tracking
A decision guide comparing static and dynamic phone number insertion for call tracking, and how to tell which approach your business actually needs.
Is Dynamic Number Insertion Worth It for a Small Team?
Whether dynamic number insertion is worth the setup for a small marketing team, and when static tracking numbers are enough instead.
B2B Intent Data: First-, Second- and Third-Party Signals
Learn what first-, second- and third-party B2B intent data are, how reliable each is, and how to decide which signals your team can actually act on.