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
Install the Module in Drupal 8/9
- Log in to your Drupal 8/9 website as an administrator.
- Navigate to the “Extend” menu.
- Click the “Add new module” button.
- Paste the module install link you copied and click “Continue.”
- Once uploaded, enable the “Header and Footer Scripts” module from the Extend list.
Step 2: Add the Secure Privacy Script Using the "Header and Footer Scripts" Extension
- Log in to your Secure Privacy account and copy your installation script from the “Installation” page.
- In your Drupal 9 admin panel, go to Manage > Configuration > Header Footer Scripts.
- Under the “Header Scripts” section → “ADD SCRIPTS AND STYLES IN HEADER,” paste your copied Secure Privacy installation script.
- Click “Save configuration” to apply the changes.
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.