Forráskód Böngészése

Merge branch 'master' into master

Amauri CHAMPEAUX 3 éve
szülő
commit
32f8f56b6e
1 módosított fájl, 60 hozzáadás és 4 törlés
  1. 60 4
      tarteaucitron.services.js

+ 60 - 4
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,8 +4770,44 @@ tarteaucitron.services.marketomunchkin = {
         s.onload = initMunchkin;
         document.getElementsByTagName('head')[0].appendChild(s);
     }
-}
-// Canal-U.tv
+};
+
+// 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');
+    }
+};
+
+// 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');
+    }
+};
+
 tarteaucitron.services.canalu = {
     "key": "canalu",
     "type": "video",
@@ -4781,4 +4837,4 @@ tarteaucitron.services.canalu = {
             return tarteaucitron.engage('canalu');
         });
     }
-};
+};