Secure Privacy

How to Install Secure Privacy on Any Platform – HTML, WordPress, Shopify, Wix, GTM, HubSpot, and More

[CMP v1] This guide provides platform-specific installation instructions for Secure Privacy across 11 major website platforms and CMS tools — including HTML, WordPress, Shopify, Wix, HubSpot, Google Tag Manager, Squarespace, Joomla, Magento, Weebly, and Adobe Dynamic Tag Manager..

SPT
Secure Privacy Team
5 min read ()

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

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. Open your index.html file or any HTML file you want to make compliant.

  3. Paste the Secure Privacy script at the top of the <head> section — before any other scripts.

  4. Save and publish your site.

2. HubSpot

  1. Navigate to your HubSpot website and open it in Edit mode.

  2. Go to Settings > Advanced Options.

  3. Paste your Secure Privacy script into the Additional Code Snippets field.

  4. Click Publish to save your changes.

3. Weebly

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. Log in to your Weebly Admin Dashboard.

  3. From the top navigation bar, click Settings.

  4. In the left panel, click SEO.

  5. Paste the Secure Privacy script (including the <script> tags) into the Header Code text area — do not replace or remove any existing code.

  6. Click Save, then publish your site.

4. Google Tag Manager (GTM)

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. In your GTM container, go to Tags > New > Custom HTML Tag.

  3. Paste the Secure Privacy script into the HTML field.

  4. Set the trigger to All Pages, give the tag a name (e.g., Secure Privacy Script), and click Save.

5. Wix

  1. Log in to your Wix Dashboard and click Manage Website in the side menu.

  2. Go to Tracking & Analytics in Site Manager.

  3. Click + New Tool and select Custom from the dropdown menu.

  4. Paste your Secure Privacy installation script into the custom code field.

  5. If you have multiple domains, select the relevant domain.

  6. Enter a name for the custom code — for example, Secure Privacy.

  7. Under Add Code to Pages, select All pages — load code on each new page.

  8. Under Place Code in, select Head.

  9. 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.

  1. Log in to your Shopify account.

  2. Click Online Store > Themes.

  3. Click the Actions button and select Edit Code (HTML/CSS).

  4. Under Layout, select your active theme's theme.liquid file.

  5. Locate the closing </head> tag. Note: some themes use variations such as {/head}, [/header], or [/head] — these work the same way.

  6. Paste the Secure Privacy script immediately before the closing </head> tag.

  7. Save the file.

7. Squarespace

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. Go to the Settings (gear icon) of your Squarespace account.

  3. From the Settings menu, click Advanced, then navigate to Code Injection.

  4. 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.

  5. 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.

  1. Log in to your WordPress admin panel and go to Plugins > Add New.

  2. Install a plugin that allows adding scripts to the page header — for example, the free Insert Headers and Footers plugin.

  3. Once installed, open the plugin and confirm the Head and Footer tab is active.

  4. 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.

  5. Scroll down and click Save to apply the changes. Your Secure Privacy script is now installed on your WordPress website.

9. Joomla

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. Log in to your Joomla Administration panel.

  3. Click Template Manager, then click the Templates tab.

  4. Locate the template your site is using and click its title.

  5. Click Edit Main Page Template.

  6. Locate the <head> section and insert your Secure Privacy script immediately below the opening <head> tag.

  7. Click Save & Close. Your Secure Privacy script is now installed.

10. Magento

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. In the Magento Admin menu, go to System > Configuration.

  3. In the left panel, select Design.

  4. Expand the HTML Head section.

  5. Paste the Secure Privacy script into the Miscellaneous Scripts text box.

  6. Click Save Config.

11. Adobe Dynamic Tag Manager (DTM)

  1. Log in to your Secure Privacy account and copy the installation script from Domain > Installation.

  2. In Adobe DTM, paste the script and remove the opening <script> tags as required by DTM's custom code format.

  3. Save the rule.

  4. 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.

See Also

Need more help?

Our privacy experts are here to guide you through complex regulations and find the right solution.

Contact Support

Related Articles

View all