Troubleshooting Dynamic Number Insertion

If you received a “swap target not found” status for a tracking number you expected to swap, check these items on your web page to make sure your swap target can be located.

Use this article to:

  • Identify common formatting errors that would cause a number not to swap

Getting Started

You must test each page where you’ve installed dynamic number insertion separately. For example, entering a landing page URL will not test the entire website.

Each dynamic number insertion test checks the web page for all tracking numbers in your company, so some tracking numbers that show as “not found” may not be a problem.

First, make sure the swap target number (the number you have assigned to swap with the tracking number) is present on the web page you’re testing. Then, check that the tracking number marked “not found” is a tracking number you intend to use on that page.

Read this help article for information on swap targets.

Swap Target Formatting 

Once you've confirmed your swap target is on the page and you're troubleshooting the correct tracking number, continue by checking your swap target number formatting.

  1. Check for <span> tags that break up the swap target number. Sometimes this is intentional to prevent the number from swapping. If you’d like the number to swap, remove any <span> tags.

  2. Ensure the script is not nested inside another element such as an <iframe>, <header>, or <noscript> tag.

  3. Double check that the swap target is present in the source code of your URL in one of the following formats:

    111-222-3333, 111.222.3333, and (111) 222-3333.

  4. If your swap target is a vanity number (ex. 888-Call-Now), please contact our support team to configure the vanity number to properly swap.

FAQs

Are there other ways to test dynamic number insertion?

To manually test dynamic number insertion and simulate different kinds of web visits, follow these instructions.

What if I don’t want my number to swap?

If you don’t want your numbers to swap, use these two methods. When you run the DNI test, it will show these swap targets as “not found.”

  1. Add a <span> in the middle of a number that you don’t want to swap for example: 555-<span>444<span>-3333. The number won’t be recognized as a swap target.

  2. Or add the attribute data-calltrk-noswap to an element containing the phone number. When this is added, nothing inside that element or its child elements will be swapped.
    • For example, if you have a text message link on your site and don’t want it to send a text to the tracking number, add the attribute to the anchor tag like this:  <a data-calltrk-noswap href="sms:131087

 

Have more questions? Submit a request

Comments

Need additional help? Ask our Community!