Tracking Script Template

Tracking Script Template

The JavaScript below contains the template that must be used when setting up the tracking script.
  1. <script type="text/javascript">
  2.     var _ctq = _ctq || [];
  3.     _ctq.push(['setSiteId', Site ID]);
  4.     _ctq.push(['requires', [Group 1, Group 2, ..]]);
  5.     // Insert calls to replacement methods here
  6.     _ctq.push(['trackPageView']);

  7.     (function() {
  8.         var wca = document.createElement('script'); wca.type = 'text/javascript'; wca.async = !0;
  9.         wca.src = "//web-call-analytics.com/wca.js";
  10.         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(wca, s);
  11.     })();
  12. </script>
Calls to replacement methods (described in the Methods section) must be inserted into this tracking script to enable number switching.
    • Related Articles

    • Tracking Script Example

      The Most Common Configuration The example below is applicable to a website with one number group. The tracking script will replace the main number that is prominently displayed in the header, and then find all other occurrences of the main number ...
    • Static vs Dynamic Tracking

      Static and Dynamic Tracking, what is the difference and which type of number do I need? Static Call Tracking Static call tracking is the traditional form of tracking, you may also know this as single channel based tracking. Essentially the idea ...
    • Install the Business1300 tracking code with Google Tag Manager

      The Business1300 tracking code needs to be installed on your site in order to start tracking online calls. The quickest and easiest way to install the Business1300 tracking code is using Goole Tag Manager. Getting your Business1300 tracking code You ...
    • Positioning of JavaScript

      Positioning of JavaScript The positioning of the JavaScript depends on whether you are using tag manager. No Tag Manager For no tag manager, place the tracking script in the <head> of the HTML. This will ensure the dynamic numbers switch across ...
    • Google Tags Manager

      How to Install Tracking in Google Tag Manager Step 1 Log in to Google Tag Manager, select your account, and on the Container page click on the New Tag button at the top. Step 2 Name your tag UCOM and click on the Custom HTML Tag button. Step 3 Copy ...