What is Dynamic Number Insertion (DNI)?
DNI connects online ads to the phone calls they produce.
Here is the problem it solves. Someone searches 'plumber near me', clicks your Google ad, lands on your site and calls the number they see. Your analytics never links that call to the keyword, ad or campaign. The call happens offline, outside Google's tracking.
DNI fixes this with a JavaScript snippet on your site. The snippet swaps the displayed number for each visitor.
Say Visitor A arrives from a Google Ads click and sees +1-555-001-0001. Visitor B arrives from organic search and sees +1-555-001-0002. When A calls, you know the keyword and campaign behind the call. When B calls, you know they came from organic search.
DNI captures Google's click IDs: GCLID for desktop traffic, gbraid for iOS app-bound traffic and wbraid for iOS web traffic. The iOS IDs matter because cookie consent often blocks normal tracking on iPhones.
Even if an iPhone user declines cookies, CallMatrix can still capture their gbraid from the landing page URL. It can then tie the later call back to the exact Google Ads keyword.
DNI also records UTM parameters and the landing page URL. In CallMatrix, each campaign has its own number pool. One page can run several DNI snippets through the namespaced window.CallMatrix[campaignId] API. That way, different calls to action on the same page can use different campaigns and pools.
Session stickiness keeps the same number for the same visitor across page views, for a window you set. When the session ends, the number goes back to the pool for the next visitor.
Frequently Asked Questions
How does DNI handle iOS attribution?
DNI reads gbraid (iOS app-bound) and wbraid (iOS web-only) from the landing page URL, not from cookies. So iPhone users who decline cookies are still tied back to the Google Ads keyword that brought them.
What happens if a visitor stays on my site for 2 hours?
Session stickiness keeps the visitor's number for a window you set. When that window ends and a cooldown passes, the number goes back to the pool. If the visitor calls after their session has expired, the call won't be tied to the original click.
Can I run multiple campaigns on one page?
Yes. The namespaced window.CallMatrix[campaignId] JavaScript API lets you run several DNI snippets on one page. Each one can tie a different button or call to action to its own campaign, number pool and attribution.
Related Glossary Terms
GCLID →
GCLID (Google Click ID) is a unique ID that Google Ads adds to every ad click. Call tracking platforms read it from the landing page URL to tie phone calls back to the keyword, ad and campaign.
Call Attribution →
Call attribution links an inbound phone call to the channel, campaign, keyword or ad that brought it. It shows which campaigns produce calls and whether those calls turn into revenue.
Call Tracking →
Call tracking captures and stores the details of every inbound call: the caller's number, call length, time, routing events and the recording. Businesses use it for compliance and quality checks.
Conversion Upload →
Conversion upload sends offline results, like phone calls, back to ad platforms such as Google Ads or Facebook. Their bidding can then learn from real business outcomes, not just clicks.
Related Features
- Dynamic Number Insertion →A JavaScript snippet gives each visitor a unique number. It captures GCLID, gbraid, wbraid, UTMs and landing page. Crawlers see the static number.
- Google Ads Integration →Google Ads sync, 9 built-in checks, and click and call conversion upload.
- Conversion Upload →Upload qualified calls as Google Ads conversions from GCLID, gbraid and wbraid clicks, with verify and dry run.
- Analytics & Reporting →16 segment views, caller journeys, a funnel and cohorts. Export to CSV, XLSX and Google Sheets.