chefcookie 2.6.8 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -1
- package/README.md +9 -0
- package/_build/script.js +15 -2
- package/chefcookie.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,28 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
-
#### [2.
|
|
7
|
+
#### [2.7.0](https://github.com/vielhuber/chefcookie/compare/2.7.0...2.7.0)
|
|
8
|
+
|
|
9
|
+
#### [2.7.0](https://github.com/vielhuber/chefcookie/compare/2.6.9...2.7.0)
|
|
10
|
+
|
|
11
|
+
> 31 August 2022
|
|
12
|
+
|
|
13
|
+
- Improve etracker embed. [`eb71480`](https://github.com/vielhuber/chefcookie/commit/eb71480184de4ec93ef37d968619f9decdaab483)
|
|
14
|
+
- Update changelog. [`f8dce43`](https://github.com/vielhuber/chefcookie/commit/f8dce43aa5d5da729b378b56ac5111fccb2a53e2)
|
|
15
|
+
|
|
16
|
+
#### [2.6.9](https://github.com/vielhuber/chefcookie/compare/2.6.8...2.6.9)
|
|
17
|
+
|
|
18
|
+
> 23 July 2022
|
|
19
|
+
|
|
20
|
+
- Improve support for i dont care about cookies. [`88242de`](https://github.com/vielhuber/chefcookie/commit/88242de988c9d89ff494fcc7790bfb6dc5724613)
|
|
21
|
+
- Update changelog. [`b17b940`](https://github.com/vielhuber/chefcookie/commit/b17b9404599bf881fc534d7d91d938c537f44f01)
|
|
22
|
+
|
|
23
|
+
#### [2.6.8](https://github.com/vielhuber/chefcookie/compare/2.6.7...2.6.8)
|
|
24
|
+
|
|
25
|
+
> 17 July 2022
|
|
26
|
+
|
|
27
|
+
- Add support for i dont care about cookies. [`b00960b`](https://github.com/vielhuber/chefcookie/commit/b00960be070492f39c1801c0408cc102a158f951)
|
|
28
|
+
- Update changelog. [`30ab2ae`](https://github.com/vielhuber/chefcookie/commit/30ab2ae4382c1934917abf98fefcdb32fafb21b6)
|
|
8
29
|
|
|
9
30
|
#### [2.6.7](https://github.com/vielhuber/chefcookie/compare/2.6.6...2.6.7)
|
|
10
31
|
|
package/README.md
CHANGED
|
@@ -479,6 +479,15 @@ the `action`-key can have the following values:
|
|
|
479
479
|
|
|
480
480
|
here it makes sense to temporarily store this data in a database and evaluate it – for example, to measure the discrepancy between the real visitor numbers and the numbers in google analytics or to optimize the appearance of the consent manager (e.g. using the `layout`-option).
|
|
481
481
|
|
|
482
|
+
#### etracker optimizer
|
|
483
|
+
|
|
484
|
+
by default the etracker optimizer is disabled, since it creates a nasty fouc. you can enable it via:
|
|
485
|
+
|
|
486
|
+
```js
|
|
487
|
+
window._etr = { eoBlocked: false };
|
|
488
|
+
cc.load('etracker', 'xxxxxx');
|
|
489
|
+
```
|
|
490
|
+
|
|
482
491
|
#### event tracking
|
|
483
492
|
|
|
484
493
|
chefcookie additionally comes with event tracking for all major analytics platforms.\
|
package/_build/script.js
CHANGED
|
@@ -86,6 +86,10 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
86
86
|
return;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
if (document.head === null) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
if (this.isExcluded()) {
|
|
90
94
|
this.bindOptOutOptIn();
|
|
91
95
|
this.updateOptOutOptIn();
|
|
@@ -469,6 +473,10 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
469
473
|
if (document.querySelector('a[href="#chefcookie__accept"]') !== null) {
|
|
470
474
|
[].forEach.call(document.querySelectorAll('a[href="#chefcookie__accept"]'), function (el) {
|
|
471
475
|
_this6.registerEventListener(el, 'click', function (e) {
|
|
476
|
+
if (_this6.isOpened === false) {
|
|
477
|
+
return;
|
|
478
|
+
}
|
|
479
|
+
|
|
472
480
|
if (!('accept_all_if_settings_closed' in _this6.config) || _this6.config.accept_all_if_settings_closed === true) {
|
|
473
481
|
if (!_this6.settingsVisible()) {
|
|
474
482
|
_this6.checkAllOptIns();
|
|
@@ -1083,7 +1091,12 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
1083
1091
|
}
|
|
1084
1092
|
|
|
1085
1093
|
if (provider === 'etracker') {
|
|
1086
|
-
var _script10
|
|
1094
|
+
var _script10;
|
|
1095
|
+
|
|
1096
|
+
_script10 = document.createElement('script');
|
|
1097
|
+
_script10.innerHTML = "if(window._etr === undefined) { window._etr = {eoBlocked:true}; }";
|
|
1098
|
+
document.head.appendChild(_script10);
|
|
1099
|
+
_script10 = document.createElement('script');
|
|
1087
1100
|
|
|
1088
1101
|
_script10.onload = function () {
|
|
1089
1102
|
_this14.setLoaded(provider);
|
|
@@ -1133,7 +1146,7 @@ var chefcookie = /*#__PURE__*/function () {
|
|
|
1133
1146
|
}, {
|
|
1134
1147
|
key: "settingsVisible",
|
|
1135
1148
|
value: function settingsVisible() {
|
|
1136
|
-
return document.querySelector('.chefcookie__settings-container').classList.contains('chefcookie__settings-container--visible');
|
|
1149
|
+
return document.querySelector('.chefcookie__settings-container') !== null && document.querySelector('.chefcookie__settings-container').classList.contains('chefcookie__settings-container--visible');
|
|
1137
1150
|
}
|
|
1138
1151
|
}, {
|
|
1139
1152
|
key: "showSettings",
|