On this page
What this issue is
Call tracking tools such as CallRail work with a small JavaScript snippet. It reads where a visitor came from (for example a Google Ads click or an organic search) and swaps the phone number on the page for a tracking number. When the visitor calls, the tool matches the call to that source.
This only works on pages where the snippet loads. On a page without it, the visitor sees your normal number. The call still rings, but it is not tied to a campaign. Typical gaps are landing pages built in a separate tool, a checkout or booking subdomain, blog templates, and pages added after the script was installed by hand.
You do not lose the call itself, you lose the knowledge of where it came from. Reports undercount calls for the campaigns that send traffic to the uncovered pages. Smart bidding that relies on imported call conversions gets less data. You may cut a campaign that is actually working.
- Ad clickVisitor arrives from Google Ads
- Landing pageCall tracking script is missing
- Default number shownNo number swap happens
- Call logged as directNo campaign credit
The visitor still calls, but the source is lost.
Example: 40 calls came from ads in a month. With the script on only some pages, fewer are credited to ads.
List your page types
Write down the home page, service pages, landing pages, blog posts, contact page, booking or checkout pages and any subdomains.
View the page source
Open a page, right-click, choose View page source and search for your provider's domain, for example the script URL from your call tracking account.
Check the network tab
Open browser developer tools, go to Network, reload and filter by your provider's name. No request means the script did not load.
Test with a tagged URL
Visit the page with a test source such as ?utm_source=google&utm_medium=cpc. The phone number should change to a tracking number. If it stays the same, the swap is not running.
Repeat per template
Check at least one page per template and one on each subdomain. Pages built in a separate landing page tool need their own check.
The aim is one installation that covers every page, instead of pasting the snippet page by page. Copy the exact snippet from your call tracking account, since each account has its own code.
Use one global spot
Add the snippet through your provider's plugin, or a header and footer scripts plugin, so it loads in the head of every template. Avoid pasting it into single pages.
Check page builders
Landing pages made with a separate builder or a custom template may skip the global header. Confirm each one.
Create a Custom HTML tag
Paste the snippet and set the trigger to All Pages.
Check the container is everywhere
The tag only runs where the GTM container itself is installed. Verify with Preview mode on each page type, then publish.
Add to theme.liquid
In Online Store > Themes > Edit code, paste the snippet before the closing head tag in theme.liquid so it applies to all templates.
Cover checkout separately
Checkout pages use their own settings and may not load theme code. Use your plan's checkout customization options if you need it there.
Use project custom code
In Project settings > Custom code, paste the snippet in the Head code box and publish. This covers all pages in the project.
Add to each funnel and site
Funnels and websites have their own settings. Paste the snippet into the header tracking code of each funnel or site, not just one.
Add a custom code snippet
In Settings > Custom code, add the snippet, set it to load on All pages and place it in the Head. This needs a plan that allows custom code.
Use code injection
In Settings > Advanced > Code Injection, paste the snippet in the Header box. This needs a plan that supports code injection.
Put it in the shared layout
Add the snippet to the shared head partial or layout file so every template includes it. Do the same on each subdomain.
- The script request appears in the Network tab on every page type
- A tagged test visit swaps the number on each page type
- The same test works on every subdomain and landing page tool
- A test call to the swapped number shows in your call tracking log with the right source
- The number swap does not break click-to-call links
Gaps appear when someone launches a page outside the normal template. Keep the script in a single global place and add a call tracking check to your launch checklist for new landing pages, new subdomains and site rebuilds. Recheck after theme changes, tag manager edits and migrations.
Week 1
Script installed in the main site header
Week 6
New landing page built in a separate tool, script not added
Week 8
Ad campaign points at that page, calls show as direct
Week 9
Gap found in a page check and script added
FunnelGuard detects this only partly. Its checks look for the presence of tags on the pages in your journeys, so it can show whether the call tracking script is there on those pages when the robot visits them.
It does not check every page on your site, and it does not confirm that the number swap works or that a call is credited to the right source. To cover the rest by hand, use the steps above: check one page per template and subdomain, run a tagged test visit, and place a test call to confirm it appears in your call tracking log.
FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit.
Questions people ask
Why is my call tracking not working on some pages?
Most often the script is not loading on those pages. This happens with landing pages built in a separate tool, subdomains, or templates that skip the global header. Check the page source or Network tab for your provider's script.
How do I check if the call tracking script is installed on a page?
Open the page, view the source and search for your provider's script domain. You can also open developer tools, go to Network, reload and filter for the provider. A tagged test visit should also change the phone number shown.
Do I need the call tracking script on every page?
You need it on every page where visitors might see a tracked phone number or call from, especially pages that ad campaigns send traffic to. In practice, installing it site-wide is simpler and safer than choosing pages.
Why do calls show as direct when I run ads?
If the visitor landed on a page without the call tracking script, no tracking number was shown and the source was not recorded. The call is then logged without campaign credit. Fix the missing script and recheck.
Will Google Tag Manager cover all my pages for call tracking?
Only if the GTM container itself is on every page and the tag trigger is All Pages. Pages outside the container, such as a separate landing page tool, still need their own installation.
Does the call tracking script work on a different domain or subdomain?
Only if the script is installed there too, and your provider's cross-domain settings are set up if visitors move between domains. Test each domain with a tagged visit and a test call.
Can FunnelGuard tell me if my call tracking script is missing?
Partly. It checks for tag presence on the pages in your monitored journeys. It does not scan every page or confirm number swaps and call attribution, so test those by hand.
Related issues
- DLV-225Dynamic number insertion not swapping for ad trafficFix guide
- DLV-224Call tracking number (CallRail, etc.) swapped but not forwardingFix guide
- DLV-221Phone number on the site wrong or outdatedFix guide
- DLV-222Click-to-call link malformed (missing tel:, wrong country code)Fix guide
- DLV-230Call conversions not imported to Google AdsFix guide
- DLV-223Forwarding number dead or out of serviceFix guide