Integration

Instructions on how to integrate Cookie-Script with your system

Cookie compliance integration for Drupal 8

Go to your Cookie-Script.com account and download the cookie-script js file (how to do this, you can find here https://cookie-script.com/download-and-host-javascript-files.html).

Open your Drupal asset library's theme-name.libraries.yml file in your theme folder.

Under js: line paste CookieScript file location (file path) as shown below, where your-cookie-script-hash-number.js your download the cookie-script js file.

# theme-name.libraries.yml 
global-styling:
version: 1.x
css:
theme:
global-scripts:
version: 1.x
js:
js/your-cookie-script-hash-number.js: {}

Cookie-Script is installed on Drupal 8 now and should be ready for use.