This article explains the steps required to test dynamic number insertion (DNI) on your website.
Clear your browser cookies
Before you test, clear your browser cookies. You should perform each test as a brand new site visitor. This is because CallRail uses a JavaScript snippet and cookies for DNI. If you have navigated directly to your website before, CallRail will not identify you as a visitor from the tracking source.
If you prefer to test DNI without clearing your cookies, you can do so by using a private browsing window. This window (for example, Incognito mode in Google Chrome) will simulate a first-time visit to the website. Make sure no other private browsing windows are open when testing number swapping using this method. Each time you perform a test, you will need to close all private browsing windows and open a new window.
Simulate an organic visit
For this example, we will test a “Google Organic” tracking number.
- Clear your cookies, or open a fresh private web browser.
- Navigate to the source website (e.g., Google.com).
- Search for your full URL on the search engine (e.g., “www.yoursite.com”).
- In the search results, use the link to your website.
- Navigate to a page containing the phone number.
- Confirm that the correct tracking number is displayed.
Simulate a Facebook visit
You can simulate a facebook visit adding ?utm_source=facebook to the end of your URL.
For example: https://www.yourwebsite.com/?utm_source=facebook
To simulate a paid click, add ?utm_source=facebook&utm_medium=ppc to the end of your URL.
For example https://www.yourwebsite.com/?utm_source=facebook&utm_medium=ppc
Simulate a Google PPC click
You can simulate a Google Ads click without requiring an actual ad by adding "?gclid=test" to the end of your URL.
For example: https://www.yourwebsite.com/?gclid=test
Simulate a Bing paid click
You can simulate a Bing click without requiring an actual ad by adding "?utm_source=bing&utm_medium=ppc" or "?msclkid=test&utm_medium=cpc" to the end of your URL.
For example https://www.yourwebsite.com/?utm_source=bing&utm_medium=ppc or https://www.yourwebsite.com/?msclkid=test&utm_medium=cpc
Please note: We find that testing Microsoft Advertising works best in Firefox's private browser.
Mimic mobile devices
You can test DNI for mobile devices using the Google Chrome browser's mobile emulation feature. Once you are simulating a mobile device, use the same techniques listed above.
If you’re having trouble, we’re happy to help. Contact us, and be sure to include a link to where you have installed the dynamic number insertion code.