Skip to content

How dynamic number insertion ties a phone call to a keyword

A phone call carries no cookie. Dynamic number insertion gives each visitor their own number for a while, and that is how the click follows the caller.

The TRAKI team · · 5 min read

A web form leaves a trail: the page, the cookie, the click id in the URL. A phone call leaves only two numbers, the one that called and the one that was dialled. Dynamic number insertion (DNI) makes the dialled number carry the trail.

One visitor, one number, for a while

A DNI script runs on your pages. When a visitor arrives, it asks for a number from a pool and swaps it into the page wherever your phone number appears. The number is leased to that visitor's session for a set time. During the lease, nobody else is shown it.

When the number rings, the platform looks up whose lease it was. The call is joined to that visit: the landing page, the referrer, the UTM parameters, and the ad click ids in the URL (gclid for Google Ads, fbclid for Meta, msclkid for Microsoft Advertising).

How big the pool has to be

A pool needs roughly one number for each visitor who is on your pages at the same time in your busiest hour, plus a margin. If the pool runs out, a new visitor is shown a number that is already leased, and a call on it can no longer be told apart. On TRAKI the pool page shows active leases against the pool size, which tells you when to add numbers.

Static numbers still have a place: print, radio, a listing on a directory. Give each its own number and the source is the number itself.

Sending the call back to the ad platform

Attribution inside your own reports is half the value. The other half is telling the ad platform which clicks became calls, so its bidding learns from them. With the click id on the call, a qualified call can be uploaded as an offline conversion against the click that produced it.

When there is no click id, some platforms accept a hash of the caller's number instead. TRAKI sends only the SHA-256 hash, never the number, and only when you switch that on.

What to check after installing

  • The script runs on every page that shows a number, including thank-you pages and pages built outside your main site.
  • The number on the page changes between two private browser windows.
  • A test call from each window shows its own landing page in the call log.

On TRAKI, each page the script runs on is listed with the last time it swapped a number, so a page that stopped swapping is visible before the calls stop being attributed.

See call tracking for how this works in the product.

Put it to work on your own calls.

Start the 14-day trial with every feature switched on. No card required.

A number you could have today

+1 (312) 982-0373

Chicago, IL · $1.15 a month