Dynamic Numbers - Testing your website

Dynamic Numbers - Testing your website


This article provides the most common way to test the code provided by AVANSER.

Tracking Configuration when Domains are configured

If you configured a domain it is fairly simple to test the script:
  1. Edit the configuration you want to test.
  2. Scroll to "Configure Tracking Sources and Mediums".
  3. Right-Click on the "Attachment" icon and copy the URL.


  1. Open your browser in Incognito or Private mode.
  2. Paste the URL in the address bar.
  3. Open the Developers Tools and click on the Console.
  4. Paste the snippet below:

(function() {
    var av = document.createElement('script');
    av.type = 'text/javascript';
    av.id = 'AVANSERjs';
    av.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 
        'adriano-au.avanser.com/aa.js?t=' + (new Date().getTime());
    var h = document.getElementsByTagName('head')[0];
    h.parentNode.appendChild(av);
})();

  1. Press the "ENTER" key.
Below a screenshot on what the Developer Console looks like on Google Chrome.



Tracking Co​nfiguration when Domains are not configured

When domains are not configured you'll need to tag the URL in order to simulate the AD click or the organic search. 
Use Google's Campaign URL Builder available at https://ga-dev-tools.web.app/campaign-url-builder/.



Website URL is the url you'd like to test the code onto.
You'll need to feel "campaign source", "campaign medium", "campaign name" and "campaign term" as set in the configuration you'd like to test, follow the instructions below to gather the required values.
  1. Open the configuration by clicking the edit icon

  1. Highlighted below the matching values


  1. Copy each value into the URL Builder corresponding fields.
  2. Click on the Copy icon "" to copy the URL.
  3. Open your browser in Incognito or Private mode.
  4. Paste the URL in the address bar.
  5. You can now copy the Script snippet at the end of the configuration page. Do not copy the comments and <script> tag.
 

  1. Open the Developers Tools and click on the Console.
  2. Paste the snippet.
  3. Press the "ENTER" key.
Below a screenshot on what the Developer Console looks like on Google Chrome.


    • Related Articles

    • Dynamic Number Insertion

      Access to this tool has been limited to authorized users only. If you required certain users to have access to this module, please contact your Account Manager. The dynamic numbers configuration section allows user to add new tracking codes to their ...
    • Dynamic Number Insertion - Troubleshooting (Advanced)

      This article is part two of a two-part guide in troubleshooting AVANSER's Dynamic Number Insertion code on your website. This guide will help ensure that the code is installed correctly, and is working as expected. If you have not already attempted ...
    • Dynamic Numbers: Service Summary

      AVANSER Dynamic Numbers is a service designed to replace the Phone Numbers in your Website with an AVANSER Tracking Number, this process does not change the source code of your Website, but, instead, process your Website when is displayed to ...
    • Dynamic Number Insertion - Troubleshooting (Basic)

      This article is part one of a two-part guide in troubleshooting AVANSER's Dynamic Number Insertion code on your website. This guide will help ensure that the code is installed correctly, and is working as expected. This article covers the basics of ...
    • Dynamic Numbers - Keyword Attribution

      Regarding keyword attribution in the AVANSER Portal, the Ad URLs have to be manually tagged in order to retrieve this data. Please see below for more information: In order for the session details of the caller to be picked up by the AVANSER system, ...