From 6158003bcc20b626e4b5f4ec4df7ab33d794d138 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 9 Sep 2021 11:00:53 +0200 Subject: [PATCH 1/3] Add Google Optimize --- tarteaucitron.services.js | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 7636722..3169da7 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4717,7 +4717,27 @@ tarteaucitron.services.gforms = { var id = "gforms"; tarteaucitron.fallback(['gforms_embed'], tarteaucitron.engage(id)); } -} +}; + +// Google Optimize +tarteaucitron.services.goptimize = { + "key": "goptimize", + "type": "other", + "name": "Google Optimize", + "needConsent": true, + "cookies": ["CONSENT", "NID"], + "uri": "https://policies.google.com/privacy", + "js": function () { + "use strict"; + + if (tarteaucitron.user.goptimize === undefined) { + return; + } + + tarteaucitron.addScript('https://www.googleoptimize.com/optimize.js?id=' + tarteaucitron.user.goptimize); + } +}; + // Marketo munchkin tarteaucitron.services.marketomunchkin = { "key": "marketomunchkin", @@ -4750,4 +4770,5 @@ tarteaucitron.services.marketomunchkin = { s.onload = initMunchkin; document.getElementsByTagName('head')[0].appendChild(s); } -} +}; + From 5627d98076d0f626242d9148f9533e6d964b9c90 Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 9 Sep 2021 16:02:27 +0200 Subject: [PATCH 2/3] Add Outbrain --- tarteaucitron.services.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 3169da7..2ac50d1 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4772,3 +4772,18 @@ tarteaucitron.services.marketomunchkin = { } }; +// outbrain +tarteaucitron.services.outbrain = { + "key": "outbrain", + "type": "ads", + "name": "Outbrain", + "uri": "https://www.outbrain.com/fr/advertisers/guidelines/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + tarteaucitron.addScript('https://widgets.outbrain.com/outbrain.js'); + } +}; + From 5e27eab8870894e83ff8d492bd452ae1254b7d4d Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Thu, 9 Sep 2021 16:02:50 +0200 Subject: [PATCH 3/3] Add Affilae --- tarteaucitron.services.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 2ac50d1..0fe6ca4 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -4787,3 +4787,24 @@ tarteaucitron.services.outbrain = { } }; +// affilae +tarteaucitron.services.affilae = { + "key": "affilae", + "type": "ads", + "name": "Affilae", + "uri": "https://affilae.com/en/privacy-cookie-policy/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.affilae === undefined) { + return; + } + + window._ae = { "pid": tarteaucitron.user.affilae }; + + tarteaucitron.addScript('https://static.affilae.com/ae-v3.5.js'); + } +}; +