Testing Dynamic Number Insertion

After you’ve installed the dynamic number insertion code snippet on your web page, use these testing methods to check that your dynamic number insertion is working and tracking numbers are swapping on your web pages. 

Use this article to learn how to:

  • Use our auto-test feature to test dynamic number insertion
  • Manually test dynamic number insertion

Getting Started

Install CallRail’s dynamic number insertion Javascript on every landing page and page of your site with a phone number. Each company in your CallRail account has its own, unique code snippet for call tracking.

Learn how to install dynamic number insertion with this help article

Auto-Test Dynamic Number Insertion

Use this auto-test to confirm that dynamic number insertion is correctly installed and working on your web page. This test has two parts. First, it validates that your code snippet has been installed in the correct location before the </body> tag. Then, it checks that your tracking numbers are swapping on your site.

You must test each web page individually where you’ve installed dynamic number insertion. Testing a landing page, for example, will not test your entire site.

  1.  Choose the company whose DNI code you’re testing. 

    company_drop.png

  2. Click Settings at the top of the page.  

    Screen_Shot_2018-02-07_at_10.51.09_AM.png 

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

    Snip20180208_92.png 

  4. Choose the Dynamic Number Insertion integration.  

    Snip20180208_93.png 

  5. Copy and paste the web page URL that you’d like to test and click Start Test.   

    Snip20180207_75.png

  6. The first part of the test checks that your company’s code snippet has been installed in the correct location before the </body> tag and has no formatting errors. Without the code snippet installed correctly, your tracking numbers cannot swap. 

  7. If your code snippet is properly installed, you’ll see a green check mark in the Code Snippet Status section. 

    code_snipped_status.png

  8. If your code is not found or not properly installed, you’ll see a yellow alert with instructions on how to fix your code installation and a date stamp of your last test.  

    yellow_status.png

    If the code snippet is not in the correct location, your numbers can’t swap so the second part of the test will not be performed. If your code snippet is in the correct location, the second part of the test will check that your numbers are swapping correctly.

  9. In the Tracking Number Status section of the test, it’s important to note that we’re testing all the tracking numbers in your company. So, some numbers that show up as “not found” are not a problem. Only troubleshoot tracking numbers you expected to swap on the page you are testing. 

    Screen_Shot_2018-08-14_at_12.48.10_PM.png

  10. Tracking numbers that are properly swapping on the page you’re testing will show a green check mark in the Status column.

    Auto_DNI_Test_-_V2_Preview_Mode_-_InVision_2018-07-05_14-09-36.png

  11. Click the eyeball icon in the View column to see a live swap example of the tracking number swap on your page.

    Screen_Shot_2018-07-05_at_2.10.17_PM.png

  12. This screen will show a screen capture of the tracking number swap that happened with a date and time stamp of when the swap occurred.  

    Auto_DNI_Test_-_V2_Preview_Mode_-_InVision_2018-07-05_14-11-07.png

  13. There will be a yellow alert message in the Status column for numbers that aren’t swapping on the web page you’re testing.

    Auto_DNI_Test_-_V2_Preview_Mode_-_InVision_2018-07-05_14-11-59.png

    Remember, we’re testing all the tracking numbers in your company. This alert isn’t a problem for tracking numbers that won’t be used on the specific web page you’re testing.

  14. If it’s a tracking number you expected to swap on the page, click the Troubleshoot link to view a help article on troubleshooting common errors that will prevent a number from swapping.

    Screen_Shot_2018-07-05_at_2.13.33_PM.png

  15. You can also select the Number Name to be sent directly to the edit page for that number so you can make any configuration changes needed.

    Screen_Shot_2018-07-05_at_2.14.15_PM.png

Manually Test Dynamic Number Insertion

Use these test methods to manually test dynamic number insertion. Because CallRail's swap code creates a cookie that remembers your previous website visits, you might think that dynamic number insertion isn’t working even when it is.

  1. First, Clear Your Cookies.

    Before you test, clear your cookies. Each test must be performed as if you are a brand new visitor; otherwise, number swapping will not work as expected. (If you’ve navigated directly to the website before, CallRail will identify you as a “direct” visitor, rather than as a visitor from the tracking source you’re testing).

    If you prefer to test dynamic number insertion without clearing your cookies, you can do so by accessing the website in a private browsing window. Using a private browsing window (like Incognito mode in Google Chrome) allows you to simulate yourself as a first-time visitor to the website. It's important to ensure no other private browsing windows are open when testing number swapping using this method.

  2. Simulate an Organic Visit.

    For the purpose of this example, we’ll assume you’re testing a “Google Organic” tracking number.

    • Clear your cookies, or open a fresh private web browser.
    • Navigate to the source website (ie. Google.com).
    • Search for your full URL on the search engine (ie. “www.yoursite.com”).
    • In the search results, click the link to your website.
    • Navigate to a page containing the phone number.
    • Confirm that the tracking number is displayed. If so, congratulations, it works!

  3. Simulate a Google AdWords Click.

    For Google AdWords, you can manually simulate a click without requiring you to click on an ad by appending "?gclid=test" to your URL.

    For example: https://www.yourwebsite.com/?gclid=test

  4. Simulate a Bing Paid Click.

    Testing Bing Ads requires a few more steps. Using the Mozilla Firefox web browser:

    • Download the RefControl plugin --> RefControl
    • Go to Tools --> RefControl Options --> Add Site
    • Type in your site's address: “www.yoursite.com”
    • Select Custom and type in http://www.bing.com
    • Click "OK" then clear your cookies
    • Type in www.yoursite.com/?utm_medium=cpc to test the swap

  5. Mimic Mobile Devices.

    You can test dynamic number insertion for popular mobile devices like iPhones, iPads, Androids, etc using the Google Chrome browser's mobile emulation feature. Use the same techniques listed above for simulating visits when opening the source website using mobile emulation.

    The following Chrome documentation details the steps to enable the mobile emulation feature: Google Chrome Mobile Emulation

    If you’re having trouble, we’re happy to help. Contact us and be sure to include a link to the website where you've installed the dynamic number insertion code.

FAQs

What should I do if I keep getting error messages?

If you keep getting error messages for numbers you expect to swap, try troubleshooting common dynamic number insertion errors

I’ve tried troubleshooting, but my number still isn’t swapping. What should I do?

Reach out to our Support team if you continue receiving errors for tracking numbers you expected to swap on your page. They’ll be able to double check additional settings for your tracking number to see why it might not be swapping.

Have more questions? Submit a request

Comments

Need additional help? Ask our Community!