2017 © Pedro Peláez
 

craft-plugin cookiebot

CookieBot integration into Craft CMS 3.

image

balazscsaba2006/cookiebot

CookieBot integration into Craft CMS 3.

  • Friday, July 6, 2018
  • by balazscsaba2006
  • Repository
  • 1 Watchers
  • 3 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

CookieBot for Craft3 and Craft4

CookieBot integration into Craft CMS 3 or 4., (*1)

Requirements

This plugin requires Craft CMS 3.0.0 or later., (*2)

Install

  • Install with Composer via: composer require balazscsaba2006/cookiebot
  • Navigate to Settings -> Plugins and click the "Install" button

Configure

  • Navigate to Settings -> Plugins and configure settings for Cookiebot

Overriding plugin settings

If you create a config file in your config/ folder called cookiebot.php, you can override the plugin’s settings in the Control Panel. Since that config file is fully multi-environment aware, this is a handy way to have different settings across multiple environments., (*3)

Here’s what that config file might look like along with a list of all of the possible values you can override., (*4)

    <?php

    return [
        'domainGroupID' => 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
        'defaultPreferences' => true,
        'defaultStatistics' => true,
        'defaultMarketing' => false
    ];

Usage

Can be used to render dialog and declaration script on Twig templates, (*5)

Render dialog script:

{{ craft.cookiebot.dialogScript()|raw }}

Render declaration script:

{{ craft.cookiebot.declarationScript()|raw }}

Render dialog/declaration script in a certain language:

{# dialog script #}
{{ craft.cookiebot.dialogScript(craft.app.locale.id)|raw }}

{# declaration script #}
{{ craft.cookiebot.declarationScript(craft.app.locale.id)|raw }}

Can be used to check for consent on certain cookie categories like: Preferences, Statistics and Marketing., (*6)

Checking for any consent:

{% if craft.cookiebot.hasConsent %}
    {# ... #}
{% endif %}

Preferences:, (*7)

{% if craft.cookiebot.hasPreferencesConsent %}
    {# ... #}
{% endif %}

Statistics:, (*8)

{% if craft.cookiebot.hasStatisticsConsent %}
    {# ... #}
{% endif %}

Marketing:, (*9)

{% if craft.cookiebot.hasMarketingConsent %}
    {# ... #}
{% endif %}

The Versions

06/07 2018

dev-master

9999999-dev

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot

06/07 2018

1.0.6

1.0.6.0

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot

06/07 2018

1.0.5

1.0.5.0

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot

15/06 2018

1.0.4

1.0.4.0

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot

07/06 2018

1.0.3

1.0.3.0

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot

07/06 2018

v1.0.0

1.0.0.0

CookieBot integration into Craft CMS 3.

  Sources   Download

proprietary

The Requires

 

cms craftcms craft-plugin craft gdpr cookiebot cookie bot