How to Set Up CallRail Tracking for Google Ads: Complete GTM & DNI Guide

Quick Summary (TL;DR):

Learn how to set up CallRail Dynamic Number Insertion (DNI) and direct Google Ads call attribution using Google Tag Manager. Master dynamic pool creation, GTM Custom HTML implementation, verification, and Google Ads call asset deployment for full-funnel call tracking.

For service-based businesses, local agencies, and high-ticket B2B providers, phone calls are often the primary driver of revenue. However, without accurate Dynamic Number Insertion (DNI), attributing which Google Ads campaign, keyword, or ad copy triggered the inbound call becomes impossible.

Integrating CallRail with Google Ads via Google Tag Manager (GTM) enables closed-loop call attribution, swapping website phone numbers dynamically while pushing offline phone call conversions back into Smart Bidding algorithms.

Follow this complete step-by-step technical setup guide to connect CallRail, configure website pools, and deploy DNI via GTM.


Step 1: Connect CallRail to Your Google Ads Account

  • Log in to your CallRail dashboard.

  • In the left-hand navigation menu, click Integrations.

  • Select Google Ads from the integrations library.


call rail google ads integration

  • Click Authorize to connect your Google Ads account credentials.
  • Once authorized, select the target Google Ads Account (Customer ID) from the dropdown.
  • Under the conversion configuration settings, carefully ensure that the Calls and Text toggles are enabled as required to auto-create and sync conversion actions into Google Ads.


call rail dashboard call and text toggle


Step 2: Create a Website Tracking Pool (Dynamic Number Insertion)

To capture keyword-level attribution data, you must create a dynamic pool of tracking numbers that swap based on visitor session source.


[Google Ads Click with GCLID] 

 │ 

 ▼

 [Landing Page Load + DNI Script] 

 │ 

 ▼ 

[CallRail Swaps Target Number ➔ Dynamic Pool Number] 

 │ 

 ▼ 

 [Inbound Call Captured ➔ Sent to Google Ads API]



  • Navigate to Numbers ➔ Create Number in CallRail.
  • Select All Visitors (recommended) to ensure cross-channel tracking integrity.

callrail tracking number setup


  • Enter your Swap Target Number—this is your actual business phone number printed in the HTML of your website.
  • Set up the Website Pool: Choose numbers within your specific target area code.

callrail area code setup


  • Configure Call Routing to forward inbound calls directly to your primary business line.

callrail routing setup


  • Complete the setup wizard until you reach the "Congrats, your website pool is ready" confirmation screen.

callrail number setup completed


  • Copy the generated CallRail JavaScript Snippet (DNI Script).

callrail script snippet code


Step 3: Deploy CallRail DNI Script via Google Tag Manager

Using GTM ensures your tracking script executes cleanly across all dynamic pages and Single Page Applications (SPAs).

  • Open your Google Tag Manager container.

  • Create a new Tag and select Custom HTML as the tag type.

  • Paste your CallRail JavaScript snippet into the code block:


gtm callrail java script setup


  • Set the trigger to Initialization - All Pages (or Consent Initialization if operating under Consent Mode v2).
  • Save and publish the container.

Step 4: Verify CallRail Integration & Script Status

  • Return to your CallRail Dashboard.

  • Navigate to Integrations ➔ Integration Library.

  • Check the status indicator for Google Ads and the JavaScript Snippet.

  • Both indicators must show an Active (Green) status light to confirm data flow.


callrail dashboard comfirmed added completed


  • Re-verify the Google Ads integration page to ensure the Calls and Text settings remain toggled on and connected.


callrail call and text toggle setup



Step 5: Tracking Google Ads Call Assets (Extensions)

To track call conversions generated directly from Google Search SERPs (via Call Assets / Call Extensions), you need dedicated static tracking numbers.

  • In CallRail, go to Numbers ➔ Create Number.


callrail adding number


  • Select Off-site / Offline Campaign (or Single Source tracking).

  • Assign this unique number specifically for your Google Ads Call Assets.


callrail google ads asset number option


  • Copy this tracking number and paste it directly into your Google Ads Asset Manager under Call Assets.



FAQ (Frequently Asked Questions)


Why is my CallRail number not swapping on my website? 

Number swapping issues usually occur if the Swap Target number in CallRail does not match the exact phone number format present on your website's HTML, or if the GTM tag is blocked by consent settings or script minification tools.


Does CallRail work with Google Ads Smart Bidding? 

Yes. Once integrated, CallRail imports calls as offline conversions into Google Ads via GCLID/WBRAID parameters. Set these call conversion actions to Primary in Google Ads to allow Target CPA or Target ROAS bidding algorithms to optimize for call leads.