How to Configure the EU Cookie Compliance (GDPR Compliance) Drupal Module

There are many General Data Protection Regulation (GDPR) modules for Drupal. Such modules control one or more of the following functions to meet GDPR requirements:

  • How, when, and what cookies are stored within a user’s web browser
  • Whether user IP addresses are stored in web analytics software
  • Customized banners for opting in and out with tracking

The EU Cookie Compliance (GDPR Compliance) in Drupal does all of these. This helps your branding by showing visitors you value their security and privacy. Below we’ll cover how to:

Ignite your online presence with cutting-edge Drupal Website Hosting. Elevate speed, security, and reliability for a seamless website experience.

Install the EU Cookie Compliance Module

This is the easiest method to install the GDPR compliance Drupal module.

  1. Log into Drupal.
  2. Install the Drupal module using the EU Cookie Compliance (GDPR Compliance) download link.
  3. Click Enable newly added modules.
  4. Under User Interface, check the box beside EU Cookie Compliance.
  5. At the bottom, select Install.

Configure GDPR Compliance in Drupal

  1. At the top of the Drupal administrator dashboard, select Configuration.
  2. Under System, select EU Cookie Compliance.
  3. You’ll see two sections for the Drupal module: Settings and Categories.

Settings for GDPR Compliance in Drupal

Permissions: There are two checkboxes for you to select whether to display the banner for every Anonymous user and/or Authenticated user.

Consent for Processing of Personal Information: There are five consent methods for handling user activity:

  • Consent by default with no option to opt out. This method is not GDPR compliant.
  • Opt-in is the default option and GDPR compliant. Visitors aren’t tracked unless they select the Agree button.
  • Opt-in with categories is the second of two GDPR compliant options. Selecting this allows users to opt-in to cookie categories configured in the module’s Categories section.
  • Opt-out tracks visitors by default, unless they opt out. Keep in mind, many users assume they’re not being tracked unless they agree. Therefore, it would be beneficial to state you’re using this method in your consent banner.
  • Automatic respects the Do Not Track (DNT) web browser setting if enabled. This combines opt-in when DNT is enabled with Consent by default when DNT is disabled.

Your selected consent option determines which sections show below.

Select the popup info template for ‘default by consent’ option: The first option shows a More info button beside the Accept button on the right. The second option shows a More info link on the left after other text.

Cookie categories: This option is specific to websites that opt users in with categories. Here you can change the labels for the Save preferences and Accept all categories buttons.

Disable the following JavaScripts when consent isn’t given: Add relative paths for Drupal JavaScripts (without the slash “/” at the beginning) and full URL for external JavaScripts (e.g. web analytics).

Cookie Handling: This option applies to opt-in or opt-out consent options. You can enable the automatic-removal (every few seconds) of certain cookies when consent isn’t given and list ones to allow.

Store Record of Consent: Decide whether to store data to remember which users consent to tracking.

Cookie Information Banner: Edit the actual banner message in HTML. There’s an option for creating another message specifically for mobile devices. This is especially useful if your original banner message is lengthy. You can also customize the Agree, Disagree, and cookie policy (more info) link.

Withdraw Consent: Show a privacy settings tab for a banner allowing you to withdraw consent. You can choose to show the tab after consent is withdrawn and edit the tab and withdraw buttons.

Thank You Banner: Enable this if you’d like to offer users another opportunity to read your privacy policy.

Privacy Policy: Change this to the URL for your actual privacy policy page.

Privacy Policy Version: Consider updating this number every time you update your privacy policy.

Appearance: Customize the position (top or bottom), color, height, and width.

EU Countries: This section explains how to only show the banner to visitors in Europe. Many businesses decide not to do this so all clients benefit from the new expectations for online privacy and cybersecurity.

Advanced: This last section includes various settings controlling how the banner works including when the banner doesn’t show and cookie lifetime.

Cookie Categories for GDPR Compliance in Drupal

If you selected the Opt-in with categories setting, this is where you’ll create cookie categories. 

Create cookies for GDPR Compliance in Drupal
  1. Select Add cookie category
  2. On the next page, type an easily understood label for the category with a sentence or two summarizing them.
  3. Afterwards, specify whether the category is checked or unchecked by default.
  4. After you save changes, you can drag and drop categories to your preferred order.

Learn more about Drupal security with our Drupal Education Channel.

InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+