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.