Auto-Test Dynamic Number Insertion

After you’ve installed the dynamic number insertion code snippet on your web page, use the test dynamic number insertion feature to ensure that your code snippet has been installed in the correct location before the </body> tag and your tracking numbers are swapping on your site.  

Use this article to learn how to:

  • Test dynamic number insertion on a web page

Getting Started

First, install CallRail’s swap code snippet on every landing page and page of your site with a phone number. Each company in your CallRail account has its own, unique script for call tracking.

Learn how to install dynamic number insertion with this help article.
Read this help article to manually test DNI.

This test has two parts. First, it validates that your code snippet is installed in the correct location on your web page. Then, it checks that your tracking numbers are dynamically swapping on your page.

You must test each web page individually where you’ve installed dynamic number insertion to ensure the code is correctly installed on that page. Testing a landing page, for example, will not test your entire site for dynamic code insertion.

Testing Dynamic Number Insertion

  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. Repeat the test as necessary with each page of your website where you’ve installed dynamic number insertion.

Code Snippet Status

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.

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

    Screen_Shot_2018-07-05_at_2.03.04_PM.png

  2. 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 test.  

    Screen_Shot_2018-07-05_at_1.58.50_PM.png

  3. 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.

Tracking Number Status

If your code snippet is in the correct location, the second part of the test will check that your numbers are swapping correctly.

It’s important to note that we’re testing all the tracking numbers in your company in this part of the test. 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.

  1. 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

  2. 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

  3. 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

  4. 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.

  5. 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

  6. 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

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. You can also manually test dynamic number insertion

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!