Installing CallRail's WordPress Call Tracking Plugin

CallRail’s easy-to-install WordPress call tracking plugin allows you to dynamically swap the phone number displayed on your website. Each company in your account has its own unique token you’ll use when installing the plugin to your WordPress website.

Each tracking number you create can be assigned a source (like Google Ads, Bing Organic, Yelp, Facebook, etc.) and the correct tracking number will display when a user reaches your website via one of those sources.

Use this article to learn how to:

  • Install CallRail's WordPress plugin on your WordPress website

Getting Started

There are a few important details you’ll need to know before you get started with dynamic number insertion:

  1. Once you’ve installed swap.js on your website, be sure to test your installation before your campaign begins.
    Learn how to test dynamic number insertion with this help article.

  2. Dynamic number insertion detects multiple number formats, including:
    111-222-3333, 111.222.3333, and (111) 222-3333.

  3. Special steps are necessary to swap phone numbers in images.
    Learn more about image swapping with this help article.

  4. CallRail’s swap.js code must be embedded on the visitor’s landing page, as well as each page on your website that displays a phone number. Ideally, swap.js should be installed on every page of your website. The WordPress plugin automatically installs this on every page for you.

Video Tutorial

This video tutorial will guide you through installing Dynamic Number Insertion with CallRail's WordPress plugin:

Installing CallRail’s WordPress plugin

The WordPress plugin you'll use for your website is company-dependent within your account. Use these instructions to learn how to upload the WordPress plugin for a specific company.

  1. Click Settings at the top of the page.


  2. Choose the company whose plugin you'd like to activate.


  3. Select All Integrations from the Integrations section in the left menu.


  4. Choose the WordPress integration option.


  5. Click to download CallRail’s WordPress plugin. You'll need this .zip file for a later step.

  6. Log into your WordPress site and select Plugins, then click Add New

  7. Click Upload Plugin at the top of the page.

  8. Click Choose File and select the .zip file you downloaded in your CallRail account (from step 5). Then click Install Now.

  9. Once your plugin is successfully installed, select Settings in the left menu, then click CallRail.

  10. Add the WordPress plugin key from CallRail to the plugin settings in WordPress. 

  11. Click Save Changes to activate your plugin.


Why isn’t my telephone number swapping?

Have you cleared your cookies, or tried accessing the website in a private browsing session? The most important part of testing dynamic number insertion is to simulate the experience of a first-time visitor before testing. Otherwise, the swap code will detect you as a visitor to the website from a previous session.

Learn more about testing dynamic number insertion with this help article

How do I prevent a number from swapping on my website?

If there is a specific place on your website where you don't want the number to swap, update the telephone number in your source code so that our swap script doesn't recognize it. In the number that you do not want to be swapped, you can use HTML tags that don't apply additional style.

For example: 555-<span>444<span>-3333.

When setting this up, we recommend placing "<span>" within the middle of the phone number (as illustrated above). With those additional HTML tags, our JavaScript file will not find/swap the number that you'd like to appear static.

Do I need to remove the JavaScript if I disable call tracking?

CallRail’s JavaScript code is company-specific. If you don’t plan on creating new tracking numbers in the same company where your tracking number(s) has been disabled, you can safely remove the CallRail JavaScript code. However, if you leave the swap script on your website, the numbers will no longer swap since those numbers have been disabled.

Can I have a white labeled version of my swap code?

Yes. Use the instructions above when logged into CallRail via your white label domain to access a white label version of your swap script.

Have more questions? Submit a request