Table of Contents:

Back to the main Table of Contents


Introduction

This section gives instructions on how to add the Monsido script to a website.

Keep in mind that the script is unique for each domain. Do not copy/paste from one 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.

Note: If your website uses Google Tag Manager, refer to the advanced section for specific instructions on this type of installation:

Google Tag Manager section of this document.

For more information, see the User Guide chapter:

Google Tag Manager/Monsido.


Script Setup Guide

  1. From the Monsido Domain Overview (globe icon), click Settings (gear icon) at the top of the page. The Admin Settings page opens.

    Note: The Settings button is only available to site admins.

    Image that shows the location of the Settings button, on the top menu bar.

  2. On the same row as the domain to scan, click Action.

    Image showing the location of the Actions button for a domain, on the right-hand side of the page.

  3. In the drop-down list, select Script Setup Guide. The Domain Setup page opens.

  4. Configure the options for the features included in your company’s plan.

    • Enable Statistics: Toggle the switch to OFF or ON.

      For more information, see the User Guide chapter:

      Statistics.

    • Enable Document Tracking: Toggle the switch to OFF or ON. Monsido automatically detects a download as a click on a link that ends with one of the following file extensions (please be aware, that the extensions are case sensitive).

      • 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: Extensions are case-sensitive.

    • PageAssist: Toggle the switch to OFF or ON.

      For more information, see the User Guide chapter:

      PageAssist.

    • PageCorrect: Toggle the switch to OFF or ON.

      For more information, see the User Guide chapter:

      PageCorrect.

    • Heatmaps: Toggle the switch to OFF or ON.

      For more information, see the User Guide chapter:

      Heatmaps.

    • Monsido Consent Manager: Toggle the switch to OFF or ON.

      For more information, see the User Guide chapter:

      Monsido Consent Manager.

  5. Inside the script section, click Copy Script (icon of two papers) to copy the script.

    Image showing the Copy Script button within the script field.

    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 Monsido script. The script needs to be configured separately for each domain.

  6. In the HTML editor, paste the script into the HEAD or BODY tag of the website.

    Note: If Consent Manager is activated, the script must be in the HEAD tag in order to catch the cookies.

  7. Save and commit the changes as needed.

  8. Return to Monsido and refresh the page.

  9. Open the Domain Settings page (gear icon). The column Script shows the message Script Installed.

    Image showing the Script Installed indicator.

  10. Repeat for each domain.

Place the Monsido 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.

Note: If Consent Manager is activated, the script must be in the HEAD tag in order to catch the cookies.

Note: 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 Monsido script. The script needs to be configured separately for each domain.

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 to ensure that the script loads correctly.

Note: 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 User Guide chapters:


Advanced instructions

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

CMS

This section gives information on how to install the Monsido 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 Monsido 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 Monsido 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.

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 excludes applied to it.

For advanced instructions for developers on how to install the Monsido script on a website that deploys with a CMS, see Monsido for Developers article Intro to CMS.

For more information, see the User Guide chapter:

Configure Domain Scans.


Dynamic

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

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

Add the Monsido 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 own 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 Monsido script on a static website.

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

Note: If Consent Manager is activated, the script must be in the HEAD tag in order to catch the cookies.

Note: The script is unique for each domain. Do not copy/paste the script from one to another. Websites ending 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.

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

Set up and Install Tag Manager

For more information, see the User Guide chapter:

Google Tag Manager/Monsido.

Important! Remember to Publish from within Tag Manager after any changes.


Additional information

For more information about the topics covered in this chapter, see also the documentation included in Monsido for Developers:

For further assistance, contact the Monsido support team at support@monsido.com or via the Monsido chat and help features inside the application.

Image of the Dashboard showing the location of the Help Center buttons.

See Monsido for Developers collection for more documentation containing advanced help for developers.

Contact us

Monsido, an Optimere brand:

San Diego, CA, USA

5880 Oberlin Dr,
San Diego, CA 92121, USA

Monsido US Support:+1 858-281-2185

Australia & New Zealand

Suite 2.04
80 Cooper St
Surry Hills, NSW 2010

Monsido APAC Support:+61 2 9051 0590

Copenhagen, Denmark

Borupvang 3
2750 Ballerup, Denmark

Monsido Europe Support:+45 89 88 85 05

London, UK

14 New Street
London, EC2M 4HE

Monsido UK Support:+44 20 8138 8450

Did this answer your question?