Loading...

How to add the script

Introduction

This article provides instructions for admin users on how to add the script to a website.

Script setup guide

This section gives instructions for Admin users on how to configure the script.

  1. Click Admin Settings (gear icon) on the top menu bar of any page in the platform. The Domain Settings page opens.

  2. Click Action on the same row as the domain to scan.

  3. Select Script Setup Guide in the drop-down list. The Domain Setup page opens.

  4. Configure the options for the features included in your company’s plan.
    • Enable Statistics: Toggle the switch ON.

      For more information, see the user guide articles:

    • Enable Cookieless Tracking: Toggle the switch ON.
      For more information, see the user guide article:
      Cookieless tracking setup.
    • Enable Document Tracking: Toggle the switch ON. The scan automatically detects a download as a click on a link that ends with one of the following file extensions:
      • Document Class: Enter text to identify the links associated with class names to include.
      • Document Ignore Class: Enter text to identify links associated with class names to exclude.
      • Document Extension: Enter the document extension text, for example, PDF or doc (no preceding period is needed) to identify the document extension to include. Click + to add a new row for each document extension.

    • PageAssist: Turn the switch ON to enable this add-on. 
      For more information, see the admin user guide articles:
  1. Inside the script section, click Copy Script (icon of two papers) to copy the script.

     

    For more information and instructions, see the article:

    Consent Manager attributes.

  2. In the HTML editor for your site, paste the script into the HEAD tag or place it before the </body> tag on every page.

  3. Save and commit the changes as needed.
  4. Return to the platform and refresh the page.
  5. To verify: 

    1. Open the Domain Settings page (gear icon). 
    2. The column Script shows the message Script Installed.
  6. Repeat for each domain.

Place the script on the pages to track - normally every page of the website.

In the CMS (or the website template files), add the copied code to the HEAD tag or place it before the </body> tag.

For PageAssist, PageCorrect, Heatmaps, and Consent Manager, toggle those options ON (if available) and configure them, and then copy the script.

For more information, see the admin user guide articles:

Tip: It is also possible to insert the code just before or after any Google Analytics script or other utility scripts. After installation, browse the sites and make sure that the script loads correctly.

Advanced instructions

This section gives advanced instructions on how to set up the script under special circumstances.

CMS

This section gives information on how to install the script on a website that deploys with a CMS.

Most modern CMS systems provide an easy way to add custom scripts to web pages. Include the script in the page header, so that the snippet appears before the closing </head> tag on every web page of the site that needs to be tracked. Refer to the CMS manual or ask for help from the CMS vendor for instructions on how to install custom scripts on all pages. If there is a guide for the CMS that describes how to install the Google Analytics™ script, this guide may also be used to install the script.

When the script is installed, errors are highlighted on the page where they occur. If you have access to the Analytics module, statistics are shown immediately.

For more information, see the user guide admin collection:

Configure scans.

Dynamic

This section gives instructions on how to install the script on a dynamic website.

A dynamic website generates HTML with a programming language such as Python, Ruby, PHP, or similar.

Add the script to the source code on every webpage that needs to be tracked. Alternatively, use a common include or template to push the script dynamically onto every page.

Paste the script into its include file, then include it in the page header. The snippet appears before the closing </head> tag on every page of the site that needs to be tracked.

Static

This section gives instructions on how to install the script on a static website.

Copy and paste the script so that the snippet appears before the closing </head> tag on every page of the site that needs to be tracked.

Google Tag Manager

This section provides a link to the full instructions on how to add custom scripts to Google Tag Manager.

For instructions from Google on how to install Tag Manager, see:

Set up and Install Tag Manager.

For more information and full instructions, see the user guide article:

Google Tag Manager deployment.

Cookieless tracking

The Statistics feature normally applies a cookie to the browser that the visitor uses. It is possible to remove this so that we can track the same data from visitors who refuse statistics cookies on the cookie banner. Cookieless tracking requires a separate line of script in the Statistics section.

To gather the same data without a cookie, we rely on other pieces of information such as operating system, browser, browser plugins, user IP address, and browser language to assign a unique ID to each visitor in our systems. The unique ID is only valid for 24 hours and visitor IP addresses are fully anonymized until they are deleted. This makes the solution privacy-friendly and prohibits fingerprinting.

Did not find what you were looking for?

If this content did not answer your questions, try searching or contacting our support team for further assistance.

Back to Section navigation