Quick Answer
When CallRail's numbers don't swap, the cause is almost always one of five things: the script isn't loading, the swap target doesn't match the number on your site, the number is formatted or placed in a way the script can't read, a caching or speed plugin is interfering, or you're testing in a way that doesn't look like a new visitor.
Work through the sections below in order. Most problems are fixed in the first two steps.
1. Check That the Script Loads
Each CallRail company has its own JavaScript snippet. It must load on the landing page and every page with your phone number.
- Use CallRail's built-in test dynamic number insertion tool to confirm the snippet is found on the page.
- Check that you've installed the right company's snippet if you have several companies.
- Make sure you haven't installed it twice, for example through both the WordPress plugin and Tag Manager.
- CallRail has a help article for a "403" snippet error, if you see that in your browser console.
CallRail can also email you a "numbers not swapping" alert when a pool hasn't swapped for three days or more, which often means the snippet was removed during a site update.
2. Check the Swap Target
The swap target is the phone number CallRail looks for on your page and replaces. By default, it's the destination number your tracking numbers forward to.
If your website shows a different number, such as a main line while calls forward to a mobile, nothing swaps. Fix it by adding the number on your site as a swap target in the tracking number's settings. You can add several swap targets to one number.
3. Check the Number's Format and Placement
- Odd formatting. CallRail has a guide to swap target formatting. Unusual separators or split-up digits can stop a match.
- Numbers in images. Text inside an image can't be read; CallRail has a separate approach for swapping numbers in images.
- Click-to-call buttons. If the visible number swaps but the button doesn't, format the link using CallRail's recommended HTML so both the text and the tel: link change.
- Accidental prevention. A <span> inside a number stops it swapping. That's a deliberate trick for numbers you don't want swapped, but it can be added by accident.
4. Check Caching and Speed Plugins
CallRail has a dedicated help article on dynamic number insertion and caching plugins, because they're a common cause. Settings that delay, defer or combine JavaScript can stop the script from running in time.
Clear all caches, exclude CallRail's script from optimization and retest. If you use a CDN with script optimization, check that too.
5. Test Like a Real Visitor
Many "it's not working" reports are really testing issues. DNI shows numbers based on how a visitor arrives, and it remembers returning visitors.
- Test in a private or incognito window.
- Arrive the way the tracked visitor would, such as through an ad link or a Google search.
- Don't expect a swap on direct visits if your pool only tracks certain sources.
6. Check Pool Size and Hard-Coded Numbers
If calls show as "Unknown source," a pool number may have been hard-coded on your site, so it never goes through DNI. Replace it with your swap target and let the script do the swapping.
If CallRail warns about "risky swaps," your pool may be too small for your traffic. CallRail's rule of thumb is peak hourly visitors divided by four, with a minimum of four numbers.
Still Not Working?
Gather the page URL, how you arrived, what number you saw and a screenshot, then contact CallRail support. Our CallRail support guide explains what to include so you get a faster answer.
New to DNI? Our dynamic number insertion guide explains how pools and swap targets work.
DNI Troubleshooting FAQ
Why does the number swap on desktop but not mobile?
Check for a separate mobile header or click-to-call button with a different number or format, and make sure it uses CallRail's recommended link format.
Can you stop one number from swapping?
Yes. Insert a <span> tag in the middle of that number, and the script will skip it.
Does DNI work on AMP pages?
AMP pages need CallRail's separate AMP swap code instead of the usual JavaScript snippet.