secureprivacy.ai

Secure Privacy Support Center

Search for any help questions or topics.

[CMP v1] Secure Privacy Installation Guide for Drupal | Step-by-Step

[CMP v1] Learn how to install Secure Privacy on your Drupal website using the Header and Footer Scripts module with easy-to-follow steps and screenshots.
Avatar
Andrew Sidorkin
Updated 3 hours ago

How to Install Secure Privacy on Your Drupal Website: Step-by-Step Guide

Drupal is a powerful digital experience management system used to deliver personalized web content and engage users across multiple channels. With one of the largest open-source communities and over 1 million contributors, Drupal offers robust flexibility and scalability.

Note: Before proceeding, ensure you have your unique Secure Privacy installation code. Log in to your Secure Privacy account at https://secureprivacy.ai/ and copy your installation code from the “Installation” page.

Who Is This For?

  • Website administrators managing Drupal 8.x/9.x websites
  • Developers integrating Secure Privacy with Drupal

Step 1: Install the Recommended Extension

The Secure Privacy integration for Drupal 9 uses the "Header and Footer Scripts" extension, which you can download here: Header and Footer Scripts Drupal Module.

If you are experienced with Drupal module installation, you can skip directly to Step 2.

Download the Module

Navigate to the “Downloads” section on the module page and copy the latest Drupal release link. It will look similar to this:

https://ftp.drupal.org/files/projects/header_and_footer_scripts-3.0.0.tar.gz

Header and Footer Scripts module download page

Install the Module in Drupal 8/9

  1. Log in to your Drupal 8/9 website as an administrator.
  2. Navigate to the “Extend” menu.
  3. Click the “Add new module” button.
  4. Paste the module install link you copied and click “Continue.”
  5. Once uploaded, enable the “Header and Footer Scripts” module from the Extend list.
Drupal Extend menu showing Add new module Paste module install URL dialog in Drupal Drupal module enabled in Extend menu

Step 2: Add the Secure Privacy Script Using the "Header and Footer Scripts" Extension

  1. Log in to your Secure Privacy account and copy your installation script from the “Installation” page.
  2. In your Drupal 9 admin panel, go to Manage > Configuration > Header Footer Scripts.
  3. Under the “Header Scripts” section → “ADD SCRIPTS AND STYLES IN HEADER,” paste your copied Secure Privacy installation script.
  4. Click “Save configuration” to apply the changes.
Drupal Header Footer Scripts configuration page Paste Secure Privacy script into header scripts section in Drupal

Congratulations!

You have successfully installed Secure Privacy on your Drupal-powered website. Your site is now ready to manage user consent and compliance via Secure Privacy.

Common Issues & Fixes

Where do I find the Secure Privacy installation code?
Log into your Secure Privacy account dashboard and navigate to the “Installation” page to copy your unique script code.
I don’t see the 'Header and Footer Scripts' in Drupal's Extend menu?
Make sure you uploaded and enabled the module correctly via the “Add new module” option using the latest module link.
My Secure Privacy banner is not showing after installation?
Clear your Drupal cache and refresh your website. Also confirm the script is correctly pasted under the “Header Scripts” section.

See Also

Was this article helpful?
😞 😐 😃