Skip to main content

Cookie Consent

info
  • HTML tag name: <builderius-cookieconsent>
  • Implements 3rd-party script: cookieconsent.js
  • Allowed children modules: none
  • Available since: 0.9.6 FREE

Description

Ready to use solution for cookie consent overlay/modal. It does not prevent writing 3rd-party cookies by itself, but works with Google tag manager to effectively manage such functionality.

How it works

Cookie Consent module does not accept any children modules.

tip

Since <builderius-cookieconsent> is a custom HTML element, its default behavior is equal to inline element, not block; it can be changed any time with display CSS property.

The settings must be inserted into data-settings attribute in the format of stringified JSON. Use double or tripple brackets when inserting a data variable. Its value will be stringified automatically.

The module implements Cookieconsent.js script, so settings JSON object can have all the same properties described on JS API page for the mentioned above script. The only exception is container property, it is not possible to define it via settings as it always will be automatically set to the module HTML element itself.

API

Attributes

data-settings - (optional) a stringified JSON array; also via data variable;

Events

None.

Methods

reInit

This method resets and initiates the component.