How to Add Cookie Banner on Drupal Website

You can share the code with a developer or your team by clicking on Send code to a teammate button. Enter the email address and then click on Send email. The recipient will get the code and instructions via email.
Video tutorial: Implement cookie consent on Drupal website
Steps to add cookie consent banner on Drupal


If you do not see + Install new module button, scroll down and enable the Update Manager module and click on Install.


While pasting the code, remove the commented lines that indicate the start and end of the CookieYes code. Only use the portion of the code shown in the image below. The commented lines are HTML encoded in Drupal and the CookieYes banner will not be displayed as a result.
The ‘Enable CookieYes’ checkbox will allow you to enable or disable the cookie banner from the admin side without removing the code.

