.

CCM19 for Drupal: How to integrate
the cookie banner

With CCM19, you can easily and legally securely add a GDPR-compliant cookie banner to your Drupal system. This article shows you how to integrate the CCM19 JavaScript code into your Drupal theme.

 

Does your website have a GDPR problem? Check now for free!

How high is the risk of fines for your website? Enter your website address now and find out which cookies and third-party services pose a risk

 

1. Create a CCM19 account and set up your domain

If you don't use CCM19 yet, you can create an account here free of charge. After registering, you can set up your domain directly in the CCM19 dashboard. A customized Javascript code is automatically generated, which you can then integrate into your Drupal website. This code enables the seamless and GDPR-compliant integration of the cookie banner.

2. Navigate to your theme

To insert the Javascript code from CCM19, you must edit the corresponding theme file

/themes/YourTheme

Open the folder of your active theme. If no folder exists, create a new folder for your theme.

3. Find or copy the file html.html.twig

Search for the html.html.twig file in the theme folder .

If this file does not exist in your theme, copy it from the parent theme of your child theme to obtain the same folder structure.

Important: Never edit files from the core system or the parent theme directly. Only work in the folder of your sub-theme.

4. Inserting Javascript code

  1. Open the html.html.twig file with a text editor.
  2. Insert the Javascript code from CCM19 directly at the beginning of the opening <head> tag. The code should look like this:
    Code example for the integration of ccm19 in Drupal
  3. Save the changes to the file.

5. Delete cache

After editing the theme file, it is important to clear the cache to ensure that the changes are applied.

6. Check integration

Visit your website to ensure that the cookie banner is displayed correctly. Use the CCM19 cookie scanner to check that no cookies are being set without the user's consent.

Frequently asked questions and troubleshooting

The cookie banner is not displayed: Make sure that the Javascript code has been inserted correctly and the cache has been cleared. Also check whether the html.html.twig file is in the correct folder.

Consents are not being processed correctly: Check in the CCM19 dashboard whether all embeddings and cookies used on your website have been recorded and stored correctly.

Do you need support?

If you need assistance with the setup, you can contact us at any time. Our support team is available to you both by phone and via our chat - only real people help you, not bots. We are happy to help you integrate your cookie banner optimally into Drupal.

 

Does your website have a GDPR problem? Check now for free!

How high is the risk of fines for your website? Enter your website address now and find out which cookies and third-party services pose a risk