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
Auto-Test Dynamic Number Insertion
Use this auto-test to confirm that dynamic number insertion is correctly installed and working on a single 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.
- Choose the company whose DNI code you’re testing.
- Click Settings at the top of the page.
- Select All Integrations from the Integrations section in the left menu.
- Choose the Dynamic Number Insertion integration.
- Copy and paste the web page URL that you’d like to test and click Start Test.
- 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.
- If your code snippet is properly installed, you’ll see a green check mark in the Code Snippet Status section.
- 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.
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.
- 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.
- Tracking numbers that are properly swapping on the page you’re testing will show a green check mark in the Status column.
- Click the eyeball icon in the View column to see a live swap example of the tracking number swap on your page.
- 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.
- There will be a yellow alert message in the Status column for numbers that aren’t swapping on the single web page you’re testing.
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.
- 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.
Note: There are sometimes false negatives in this auto-test where your tracking number is actually swapping on your page. If you've checked all the troubleshoot items and still receive an error message, we recommend manually testing (next section) your web page to simulate a visit and see if your tracking number is swapping on your page.
- 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.
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.
- 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.
- 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!
- 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
- Simulate a Bing Paid Click.
Testing Bing Ads requires a few more steps. Using the Mozilla Firefox web browser:
- 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.
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.
NOTE: There are sometimes false negatives in this auto-test where your tracking number is actually swapping on your page. If you've checked all the troubleshoot items and still receive an error message, we recommend manually testing your web page to simulate a visit and see if your tracking number is swapping on your page.
If your tracking number is swapping, you can ignore any auto-test error messages.
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.