From 5dbe830047f3730d122a2970edfdc3766ce9c055 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 29 Jan 2021 17:29:06 +0100 Subject: [PATCH 01/17] Update NPM --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index dacc6e3..a2b3649 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tarteaucitronjs", - "version": "1.8.3", + "version": "1.8.4", "description": "Comply to the European cookie law", "dependencies": {}, "devDependencies": {}, From e214a6289bbad0ddecfc83c91396741f9448dd4f Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Wed, 3 Feb 2021 16:48:06 +0100 Subject: [PATCH 02/17] Add OneSignal --- tarteaucitron.services.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 5c6b850..570ed5c 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -1637,6 +1637,31 @@ tarteaucitron.services.microsoftcampaignanalytics = { } }; +// onesignal +tarteaucitron.services.onesignal = { + "key": "onesignal", + "type": "api", + "name": "OneSignal", + "uri": "https://onesignal.com/privacy_policy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + if (tarteaucitron.user.onesignalAppId === undefined) { + return; + } + window.OneSignal = window.OneSignal || []; + + window.OneSignal.push(function() { + window.OneSignal.init({ + appId: tarteaucitron.user.onesignalAppId, + }); + }); + + tarteaucitron.addScript('https://cdn.onesignal.com/sdks/OneSignalSDK.js'); + } +}; + // pinterest tarteaucitron.services.pinterest = { "key": "pinterest", From ff5a661b0ddb2b49a835671c1d30af62e0cbdabc Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 4 Feb 2021 18:33:27 +0100 Subject: [PATCH 03/17] Add compteur.fr --- tarteaucitron.services.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 570ed5c..7258474 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -523,6 +523,23 @@ tarteaucitron.services.clicmanager = { } }; +// compteur +tarteaucitron.services.compteur = { + "key": "compteur", + "type": "analytic", + "name": "Compteur.fr", + "uri": "https://www.compteur.fr/help_privacy_policy.htm", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + if (tarteaucitron.user.compteurID === undefined) { + return; + } + tarteaucitron.addScript('https://server2.compteur.fr/log7.js', '', function() {wtslog7(tarteaucitron.user.compteurID,1);}); + } +}; + // contentsquare tarteaucitron.services.contentsquare = { "key": "contentsquare", From b2c7a4e1ef7f8dedefce4bd2763f5567c1cb5c1a Mon Sep 17 00:00:00 2001 From: Klemart3D Date: Fri, 5 Feb 2021 19:20:41 +0100 Subject: [PATCH 04/17] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index de1878e..4d2702c 100644 --- a/README.md +++ b/README.md @@ -27,9 +27,9 @@ Bonus: # How to use ```html - + -