This guide covers how to install the Secure Privacy script across all major website platforms and CMS tools. Select your platform from the list below for step-by-step installation instructions.
Important: Regardless of platform, always place the Secure Privacy script at the very top of the <head> section of your webpage — before any other third-party scripts. You can always find your installation script under Domain > Installation in your Secure Privacy dashboard.
Who Is This For?
Website owners and developers installing Secure Privacy on their website or CMS platform
Compliance teams completing the Secure Privacy setup checklist across different website technologies
Agencies deploying Secure Privacy cookie consent across client websites built on various platforms
1. HTML
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
Open your
index.htmlfile or any HTML file you want to make compliant.Paste the Secure Privacy script at the top of the
<head>section — before any other scripts.Save and publish your site.
2. HubSpot
Navigate to your HubSpot website and open it in Edit mode.
Go to Settings > Advanced Options.
Paste your Secure Privacy script into the Additional Code Snippets field.
Click Publish to save your changes.
3. Weebly
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
Log in to your Weebly Admin Dashboard.
From the top navigation bar, click Settings.
In the left panel, click SEO.
Paste the Secure Privacy script (including the
<script>tags) into the Header Code text area — do not replace or remove any existing code.Click Save, then publish your site.
4. Google Tag Manager (GTM)
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
In your GTM container, go to Tags > New > Custom HTML Tag.
Paste the Secure Privacy script into the HTML field.
Set the trigger to All Pages, give the tag a name (e.g., Secure Privacy Script), and click Save.
5. Wix
Log in to your Wix Dashboard and click Manage Website in the side menu.
Go to Tracking & Analytics in Site Manager.
Click + New Tool and select Custom from the dropdown menu.
Paste your Secure Privacy installation script into the custom code field.
If you have multiple domains, select the relevant domain.
Enter a name for the custom code — for example, Secure Privacy.
Under Add Code to Pages, select All pages — load code on each new page.
Under Place Code in, select Head.
Save your changes.
6. Shopify
Note: Shopify does not allow external scripts in the checkout flow. Secure Privacy can only be used on your Storefront and the Order Confirmation page.
Log in to your Shopify account.
Click Online Store > Themes.
Click the Actions button and select Edit Code (HTML/CSS).
Under Layout, select your active theme's
theme.liquidfile.Locate the closing
</head>tag. Note: some themes use variations such as{/head},[/header], or[/head]— these work the same way.Paste the Secure Privacy script immediately before the closing
</head>tag.Save the file.
7. Squarespace
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
Go to the Settings (gear icon) of your Squarespace account.
From the Settings menu, click Advanced, then navigate to Code Injection.
Paste your script (including the <script> tags) into the Header field. For scripts like Secure Privacy CMP that need to load before anything else for compliance reasons - the Header is required — not the Footer.
Click Save. The script will now load on every page of your Squarespace site.
Note: Code Injection is available on Business plans and above. It is not available on the Personal plan.
8. WordPress
Note: Administrator-level access is required to modify website settings in WordPress.
Log in to your WordPress admin panel and go to Plugins > Add New.
Install a plugin that allows adding scripts to the page header — for example, the free Insert Headers and Footers plugin.
Once installed, open the plugin and confirm the Head and Footer tab is active.
In the Page Section Injection / On Every Page input field, paste your Secure Privacy script on the very first line — this ensures Secure Privacy loads before any other cookies or plugins can fire.
Scroll down and click Save to apply the changes. Your Secure Privacy script is now installed on your WordPress website.
9. Joomla
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
Log in to your Joomla Administration panel.
Click Template Manager, then click the Templates tab.
Locate the template your site is using and click its title.
Click Edit Main Page Template.
Locate the
<head>section and insert your Secure Privacy script immediately below the opening<head>tag.Click Save & Close. Your Secure Privacy script is now installed.
10. Magento
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
In the Magento Admin menu, go to System > Configuration.
In the left panel, select Design.
Expand the HTML Head section.
Paste the Secure Privacy script into the Miscellaneous Scripts text box.
Click Save Config.
11. Adobe Dynamic Tag Manager (DTM)
Log in to your Secure Privacy account and copy the installation script from Domain > Installation.
In Adobe DTM, paste the script and remove the opening
<script>tags as required by DTM's custom code format.Save the rule.
Your Secure Privacy script is now installed via Adobe DTM.
Frequently Asked Questions
Why must the Secure Privacy script be placed at the top of the <head> section?
Placing the script at the very top of the <head> tag ensures it initializes before any other third-party scripts, pixels, or tags can load — preventing non-essential cookies from being placed before the visitor gives consent. A script loaded later in the page may allow cookies to fire before the blocking engine is active.
Where do I find my Secure Privacy installation script?
Your unique installation script is always available in your Secure Privacy dashboard under Domain > Installation. Select the domain you are installing for and copy the full script including the <script> tags.
How do I verify the script is installed correctly?
After installing and publishing your site, navigate to the Report page in your Secure Privacy dashboard and run a website rescan. If the script is correctly installed, the scan will detect it and begin populating your cookie report. You can also check your browser's developer tools to confirm the Secure Privacy script is loading in the page source.