Positioning of JavaScript

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 faster.

Google Tag Manager

In Google Tag Manager, configure a new tag of type Custom HTML Tag and paste the entire script, including the <script> tags, in the HTML field. Set the script to run on every page.

Other Tag Manager

For other tag managers, configure the tracking script to execute as soon as possible.
    • Related Articles

    • Tracking Script Template

      The JavaScript below contains the template that must be used when setting up the tracking script. <script type="text/javascript"> var _ctq = _ctq || []; _ctq.push(['setSiteId', Site ID]); _ctq.push(['requires', [Group 1, Group 2, ..]]); // Insert ...
    • 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 ...
    • Optimizely

      The Business 1300 tracking script and server are configured to automatically send goal completions to Optimizely where it detects Optimizely being used on the website. The catch these goal conversions in Optimizely, create a custom goal in Optimizely ...