Cookies Consent - 7Interactive!

Easy tools for allow/decline cookies.

Client side

On the client side, it is necessary to link CookiesConsent.js, cookiesConsent.css and also jQuery (>= 1.12.4). And the last step is to initialize and call the CookieConsent Modal.

Show settings

Server side

On the server side it is necessary to set the package to your project, you can do it in 3 steps.

Show setting

Client side

All process you can make in 4 steps.

Step 1 - link .js and .css

CookiesConsent.js, cookiesConsent.css

<link href="./styles/cookiesConsent.css" type="text/css" rel="stylesheet">

<script src="./js/cookiesConsent.js"></script>

Step 2 - inicialize CookieConsent

<script>
cookiesConsent = new CookiesConsent();
cookiesConsent.init();
cookiesConsent.setDefaultLang('cs')
</script>

Step 3 - upload config.json

Upload your config.json to folder config.

Step 4 - tag your scripts

Set your script to type="text/plain" and set data-cc_category="{{YourCategoryOfScript}}"


Server side

Step 1 - download package

Step 2 - set handler

Example:

public function handleSendCookieConsent() {
$data = $this->getHttpRequest()->getPost('data');
$cookie = new CookieConsent();
$cookie->setToken('a322d7c87373842f6efcb318fe31ee73');
$cookie->setData($data);
$cookie->send();
}