Secure Privacy

How to Install the Secure Privacy Drupal Module for Cookie Consent & GDPR Compliance

Step-by-step guide to downloading, installing, and configuring the Secure Privacy Drupal module — get cookie consent management and GDPR compliance running on your Drupal site in minutes.

SPT
Secure Privacy Team
3 min read ()

Drupal is a powerful, open-source content management system (CMS) known for its flexibility and modular architecture. Since 2001, it has evolved into a favored platform for complex, scalable websites used by governments, enterprises, educational institutions, and communities. Its modular structure allows extensive customization through contributed modules and themes — making it an ideal CMS for integrating a consent management platform (CMP) like Secure Privacy for GDPR and cookie consent compliance.

This guide walks you through installing and configuring the Secure Privacy Drupal module to enable cookie consent management on your Drupal site.


Who Is This For?

  • Drupal developers and administrators integrating Secure Privacy
  • Website owners seeking compliance with GDPR, CCPA, and other privacy regulations
  • Technical teams setting up a cookie consent management system (CMP) on Drupal

Getting Started with Secure Privacy

  1. Activate your email address and log in to your Secure Privacy account.
  2. After login, you will see an onboarding screen similar to this:
    Secure Privacy onboarding screen showing platform selection options
  3. Select Drupal.
  4. Copy the displayed Secure Privacy script code and save it for later.
  5. Keep this tab open and open a new tab to continue with the Drupal module installation.

Downloading the Secure Privacy Drupal Module

  1. Download the Secure Privacy Drupal Module and save it locally.
    1. Extract the downloaded archive on your local machine.
  2. Upload the extracted secure_privacy folder to your Drupal site's modules directory using FTP or your server's file manager.
    1. For Drupal 8, 9, and 10, use the recommended paths: /modules/contrib/ or /modules/custom/
  3. Set correct file permissions (755 for folders and 644 for files).

Installing the Secure Privacy Module in Drupal

  1. While logged in as Administrator, go to the Configuration tab.
  2. Scroll to the System section and click on Secure Privacy.
    Drupal Administrator Configuration tab showing the Secure Privacy option under the System section
  3. Enable the Secure Privacy module by selecting it and clicking Install.

Configuring the Secure Privacy Drupal Module

  1. While logged in as Administrator, go to the Configuration tab.
  2. Scroll to the System section and click on Secure Privacy.
    Secure Privacy configuration option in the Drupal System section
  3. On the configuration screen, paste the Secure Privacy installation script you copied earlier into the Secure Privacy Script text box.
    Pasting the Secure Privacy script into the Drupal module configuration text box
  4. Check Enable Secure Privacy and click Save configuration.

Complete the Secure Privacy Setup

  1. Return to the Secure Privacy onboarding tab.
  2. Click Test Installation.
  3. A toast notification confirming successful installation will appear at the bottom left of the screen.
    Toast notification confirming successful Secure Privacy installation on Drupal

Common Issues & Fixes

The Secure Privacy module is not showing up in the Extend list. What should I do?

Verify the secure_privacy folder is correctly uploaded to the modules/contrib/ or modules/custom/ directory and that file permissions are set correctly (755 for folders, 644 for files).

I cannot see the configuration screen for the Secure Privacy module.

Ensure the module is enabled in the Extend menu and that you are logged in with administrator privileges.

Double-check that the correct installation script has been pasted into the Secure Privacy Script field and that the configuration has been saved with Enable Secure Privacy checked.

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