The following modules and features require the script to be added to your website:
Statistics
Heatmaps
PageAssist
Consent Manager
PageCorrect
This document provides instructions for Admin users on how to add the script to a website.
Notes
The script is unique for each domain. Do not copy and paste the script from one domain to another. Website URLs that end in .com and .eu, for example, are considered different domains and they need different scripts. Configure the script separately for each domain.
If you plan to do the scan on a path-based domain, you need to set up path constraints because the crawler will crawl everything it can find on the domain. For more information on how to set up path constraints, contact your customer service manager or visit Path constraints and link exclusions.
If your website uses Google Tag Manager, refer to the advanced section for specific instructions on this type of installation: For more information, visit Google Tag Manager deployment.
Script setup guide
This section provides instructions for Admin users on how to configure and add the script.
Navigate to the Domain Overview page.
Click Action on the same row as the domain and select Script Setup Guide from the expanded list of options.
The system opens the Set up your domain page.
Configure the options for the features included in your company’s plan.
Enable Cookieless Tracking: Toggle the switch ON. For more information, visit 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.
Note
The extensions are case-sensitive.
PageAssist: Turn the switch ON to enable this add-on. For more information, visit:
PageCorrect: Turn the switch ON to enable this add-on.
Inside the script section, click Copy Script (the icon of two papers) to copy the script.
Important
The script is unique for each domain. It will not work to copy/paste from one to another. Websites ending in .com and .eu, for example, are considered different domains and it does not work to copy/paste the script. The script needs to be configured separately for each domain.
HTML attributes must be added to content elements on your website if you only want them to load once a cookie consent choice has been provided by the visitor. For example, if you are using Google Analytics on your website and only want the script to load once a visitor has accepted Statistics cookies, you will need to mark up the Google Analytics script with an HTML attribute.
For advanced information and instructions, visit Attributes.
In the HTML editor for your site, paste the script into the HEAD tag or place it before the </body> tag on every page.
Note
If Consent Manager is activated, the script must be in the HEAD tag in order to catch the cookies.
Save and commit the changes as needed.
Return to the platform and refresh the page.
Do the following steps to verify:
Navigate to the Domain Overview page.
Verify that the words "Script Installed"appear on the same row as the domain.
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, that guide may also be used to install the script. This section provides instructions on how to install the script on a website that deploys with a CMS.
The script highlights errors highlighted on the page where they occur and displays them on the various pages of Web Governance. If you have access to the Analytics module, the system begins to display statistics immediately.
Note
If a CMS is selected during the scan configuration and a domain with the same selected CMS exists on the account, the domain will automatically have any source code exclusions applied to it.
For advanced instructions for developers on how to install the script on a website that deploys with a CMS, visit the CMS integration collection.
This section provides 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 provides 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.
Notes
If Consent Manager is activated, the script must be in the HEAD tag for it to be able to catch the cookies.
The script is unique for each domain. Do not copy/paste the script from one to another. Websites that end in .com and .eu, for example, are considered different domains. Configure the script separately for each domain.
Google Tag Manager
This section provides a link to the full instructions on how to add custom scripts to Google Tag Manager.
Remember to Publish from within Tag Manager after you make any changes.
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, Web Governance relies 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 the 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.
The following modules and features require the script to be added to your website:
Statistics
Heatmaps
PageAssist
Consent Manager
PageCorrect
This document provides instructions for Admin users on how to add the script to a website.
Notes
The script is unique for each domain. Do not copy and paste the script from one domain to another. Website URLs that end in .com and .eu, for example, are considered different domains and they need different scripts. Configure the script separately for each domain.
If you plan to do the scan on a path-based domain, you need to set up path constraints because the crawler will crawl everything it can find on the domain. For more information on how to set up path constraints, contact your customer service manager or visit Path constraints and link exclusions.
If your website uses Google Tag Manager, refer to the advanced section for specific instructions on this type of installation: For more information, visit Google Tag Manager deployment.
Script setup guide
This section provides instructions for Admin users on how to configure and add the script.
Navigate to the Domain Overview page.
Click Action on the same row as the domain and select Script Setup Guide from the expanded list of options.
The system opens the Set up your domain page.
Configure the options for the features included in your company’s plan.
Enable Cookieless Tracking: Toggle the switch ON. For more information, visit 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.
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, that guide may also be used to install the script. This section provides instructions on how to install the script on a website that deploys with a CMS.
The script highlights errors highlighted on the page where they occur and displays them on the various pages of Web Governance. If you have access to the Analytics module, the system begins to display statistics immediately.
Note
If a CMS is selected during the scan configuration and a domain with the same selected CMS exists on the account, the domain will automatically have any source code exclusions applied to it.
For advanced instructions for developers on how to install the script on a website that deploys with a CMS, visit the CMS integration collection.
This section provides 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 provides 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.
Notes
If Consent Manager is activated, the script must be in the HEAD tag for it to be able to catch the cookies.
The script is unique for each domain. Do not copy/paste the script from one to another. Websites that end in .com and .eu, for example, are considered different domains. Configure the script separately for each domain.
Google Tag Manager
This section provides a link to the full instructions on how to add custom scripts to Google Tag Manager.
Remember to Publish from within Tag Manager after you make any changes.
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, Web Governance relies 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 the 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.
Inside the script section, click Copy Script (the icon of two papers) to copy the script.
Important
The script is unique for each domain. It will not work to copy/paste from one to another. Websites ending in .com and .eu, for example, are considered different domains and it does not work to copy/paste the script. The script needs to be configured separately for each domain.
HTML attributes must be added to content elements on your website if you only want them to load once a cookie consent choice has been provided by the visitor. For example, if you are using Google Analytics on your website and only want the script to load once a visitor has accepted Statistics cookies, you will need to mark up the Google Analytics script with an HTML attribute.
For advanced information and instructions, visit Attributes.
In the HTML editor for your site, paste the script into the HEAD tag or place it before the </body> tag on every page.
Note
If Consent Manager is activated, the script must be in the HEAD tag in order to catch the cookies.
Save and commit the changes as needed.
Return to the platform and refresh the page.
Do the following steps to verify:
Navigate to the Domain Overview page.
Verify that the words "Script Installed"appear on the same row as the domain.
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.