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 read 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, read Using Google Tag Manager with Web Governance.
Navigation
This section provides instructions for Admin users on how to configure and add the script.
Log in to your Web Governance account.
Locate the domain that you want to work with.
Click Action on the same row as the domain.
Select Script Setup Guide.
Instructions
Log in to your Web Governance account.
Locate the domain that you want to work with.
Click Action on the same row as the domain.
Select Edit Domain. For instructions on how to configure the domain settings, read
Click to toggle ON each module included in your subscription:
To save time, do the steps to enable and configure the script for all of the modules in your subscription while you are on this page. Refer to the individual setup guides for each of the other modules.
Click Domains on the main menu bar at the top of the page.
Click Action on the same row as the domain that you want to work with.
Select Script Setup Guide.
Configure the options for the features included in your company’s plan.
Enable Cookieless Tracking: Toggle the switch ON. For more information, read 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 your 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 automatically applies any source code exclusions to it.
For advanced instructions for developers on how to install the script on a website that deploys with a CMS, read 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 Site Analytics module normally applies a cookie to the browser that the visitor uses. It is possible to remove this that allows Web Governance to track the same data from visitors who refuse statistics cookies on the cookie banner. Cookieless tracking requires a separate line of script in the Site Analytics 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.
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 read 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, read Using Google Tag Manager with Web Governance.
Navigation
This section provides instructions for Admin users on how to configure and add the script.
Log in to your Web Governance account.
Locate the domain that you want to work with.
Click Action on the same row as the domain.
Select Script Setup Guide.
Instructions
Log in to your Web Governance account.
Locate the domain that you want to work with.
Click Action on the same row as the domain.
Select Edit Domain. For instructions on how to configure the domain settings, read
Click to toggle ON each module included in your subscription:
To save time, do the steps to enable and configure the script for all of the modules in your subscription while you are on this page. Refer to the individual setup guides for each of the other modules.
Click Domains on the main menu bar at the top of the page.
Click Action on the same row as the domain that you want to work with.
Select Script Setup Guide.
Configure the options for the features included in your company’s plan.
Enable Cookieless Tracking: Toggle the switch ON. For more information, read 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 your 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 automatically applies any source code exclusions to it.
For advanced instructions for developers on how to install the script on a website that deploys with a CMS, read 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 Site Analytics module normally applies a cookie to the browser that the visitor uses. It is possible to remove this that allows Web Governance to track the same data from visitors who refuse statistics cookies on the cookie banner. Cookieless tracking requires a separate line of script in the Site Analytics 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 use Google Analytics on your website and only want the script to load once a visitor has accepted Statistics cookies, you must mark up the Google Analytics script with an HTML attribute.
For advanced information and instructions, read 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 these steps to verify that the script is added:
Navigate to the Domain Overview page.
Verify that the words Script Installedappear 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.
PageCorrect
Data Privacy
Acquia Web Governance
PageAssist
Acquia Web Governance
Consent Manager
Note
The extensions are case-sensitive.
PageAssist: Turn the switch ON to enable this add-on. For more information, read:
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 use Google Analytics on your website and only want the script to load once a visitor has accepted Statistics cookies, you must mark up the Google Analytics script with an HTML attribute.
For advanced information and instructions, read 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 these steps to verify that the script is added:
Navigate to the Domain Overview page.
Verify that the words Script Installedappear 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.