---
title: "How to Configure the EU Cookie Compliance (GDPR Compliance) Drupal Module"
description: "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..."
url: https://www.inmotionhosting.com/support/edu/drupal/gdpr-compliance-in-drupal/
date: 2021-03-16
modified: 2023-09-13
author: "InMotion Hosting Contributor"
categories: ["Drupal"]
type: post
lang: en
---

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

There are many **General Data Protection Regulation (GDPR)** modules for [Drupal](https://www.inmotionhosting.com/support/edu/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)**](https://www.drupal.org/project/eu_cookie_compliance) in Drupal does all of these. This helps your [branding](https://www.inmotionhosting.com/blog/5-ways-to-improve-your-branding/) by showing visitors you value their [security](https://www.inmotionhosting.com/support/security/why-security-is-important-for-small-businesses/) and [privacy](https://www.inmotionhosting.com/blog/internet-privacy-articles/). Below we’ll cover how to:

- [Install the EU Cookie Compliance Module](#install)
- [Configure GDPR Compliance in Drupal](#config)
  - [Settings for GDPR Compliance in Drupal](#settings)
  - [Cookie Categories for GDPR Compliance in Drupal](#categories)

Ignite your online presence with cutting-edge [Drupal Website Hosting](https://www.inmotionhosting.com/drupal-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](https://www.inmotionhosting.com/support/edu/drupal/how-to-log-into-the-drupal-admin-dashboard/).
2. [Install the Drupal module](https://www.inmotionhosting.com/support/edu/drupal/install-2/) using the [**EU Cookie Compliance (GDPR Compliance)**](https://www.drupal.org/project/eu_cookie_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*](#settings) and [*Categories*](#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*](#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)](https://spreadprivacy.com/do-not-track/) 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](https://www.inmotionhosting.com/support/website/analytics/choose-the-best-analytics-tool/)).

**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](https://www.inmotionhosting.com/support/website/website-design/beginner-web-design/). 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](https://www.inmotionhosting.com/blog/privacy-policy-updated/).

**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](https://www.inmotionhosting.com/blog/ways-to-learn-more-about-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](https://www.inmotionhosting.com/support/wp-content/uploads/2021/03/drupal-eu-cookie-category-300x203.png)

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](https://www.inmotionhosting.com/support/edu/drupal/).
