Squarespace
Squarespace and the OneTrust Script
Last Updated: Oct 14, 2020
If you use Squarespace to manage your website, you can add the script to your theme header, along with the scripts for tag managers your organization uses.
Integration Steps
- Open your Squarespace page.
For GDPR, you will need to take some additional steps. You will need to:
- Disable the Enable Cookie Banner option.
- Enable the Disable Squarespace Analytics Cookies.
- Disable Enable Activity Log.
-
On the menu, select Settings > Advanced > Code Injection. The Code Injection screen appears.
-
In the Header section, paste the script.
For the integration to work, you must have a published script. For information on how to publish a script, see Getting Started with Cookie Compliance.
- Click Save.
Install and Implement Google Tag Manager in Squarespace
First you will need to add Google Tag Manager to your Squarespace site, then you will need to configure Google Tag Manager within Squarespace to work with Cookie Compliance. For more information, see Setup and Install Tag Manager.
-
Log in to your Google Tag Manager account.
-
Go to Admin > Install Google Tag Manager.
-
Copy and paste the code elements into the
<head>
and<body>
into the Code Injection section of your Squarespace site. You can find this by navigating to Settings > Advanced > Code Injection. -
Save the changes to your Squarespace site.
-
Set up your Google Tag Manager tags. For more information on how to set up tags, see Cookie Compliance Integration with Google Tag Manager.
Updated 12 months ago