Termly
Termly is a consent management platform that provides cookie consent banners, preference centres, and automated policy generation to support compliance with privacy regulations such as GDPR and CCPA.
Key features provided by Termly include:
- Cookie consent banners
- A consent preferences panel that allows visitors to update their choices
- Automatic blocking of scripts until consent is given
- Policy generation and hosting for privacy and cookie policies
When used with ShopWired, Termly is installed by adding a into your website theme so that it loads across all pages. An optional link code can also be added to allow visitors to reopen the consent preferences panel after the initial consent choice has been made.
Account creation
Account creation
To begin using Termly with ShopWired, create an account at the Termly website. After creating your account and configuring your settings, Termly provides you with a JavaScript snippet.
Theme installation
Theme installation
Once your Termly account is set up, Termly provides a JavaScript snippet that must be added to your website theme so it loads on every page, similar to the example below:
<script src="https://app.termly.io/resource-blocker/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX?autoBlock=on"></script>
The script shown above is provided as an example only. You must copy the exact script provided in your own account, as the script and any ID values will be unique to your website.
Add this code to your ShopWired theme:
- Navigate to Website > Themes
- Select the
code editoroption for the theme you want to edit - Open the
master.twigfile - Paste the Termly script just above the closing
</head>tag - Save changes
Adding a consent preferences link
Adding a consent preferences link
Termly provides a link that opens the consent preferences panel when selected, to enable visitors to update their consent choices after the initial banner interaction.
The link code will look similar to the example below:
<a href="#" class="termly-display-preferences">Consent preferences</a>
This link must be added as visible content on your website using a Custom HTML section or page content.
Adding the link code to a website page:
- Navigate to Website > Themes
- Select
customise your theme - Select
add a new section - Select the
custom HTMLsection type - Paste the link code into the Custom HTML setting
- Position the section where required and save changes
If you want to add to a website page select the Tick here to enter additional custom HTML/JS/CSS setting to add the link code.
Recommendations
Recommendations
-
Test banner behaviour to confirm that the consent banner displays correctly on desktop and mobile devices and that preferences update as expected.
-
Ensure privacy and cookie policies linked from the banner remain active and publicly accessible on your website.
-
Load the Termly script before any tracking or marketing scripts to ensure consent rules are applied correctly.