Bläddra i källkod

Merge pull request #162 from guillaumeKoban/master

Ajout du service Koban
Amauri CHAMPEAUX 6 år sedan
förälder
incheckning
9d4381e9ab
2 ändrade filer med 26 tillägg och 0 borttagningar
  1. 1 0
      README.md
  2. 25 0
      tarteaucitron.services.js

+ 1 - 0
README.md

@@ -63,6 +63,7 @@ Bonus:
 * Marketing Automation & CRM
   * Mautic
   * Webmecanik Automation
+  * Koban
   
 * Social network
   * AddThis

+ 25 - 0
tarteaucitron.services.js

@@ -2200,6 +2200,31 @@ tarteaucitron.services.multiplegtag = {
     }
 };
 
+// Koban
+tarteaucitron.services.koban = {
+    "key": "koban",
+    "type": "analytic",
+    "name": "Koban",
+    "uri": "https://koban.cloud/tos",
+    "needConsent": true,
+    "cookies": ['kbntrk'],
+    "js": function () {
+        "use strict";
+        if (tarteaucitron.user.kobanurl === undefined) {
+            return;
+        }
+        if (tarteaucitron.user.kobanapi === undefined) {
+            return;
+        }
+        window.KobanObject = 'kb';
+        window.kb = window.kb || function() {
+            window.kb.q = window.kb.q || [];
+			window.kb.q.push(arguments);
+        };
+        window.kb.l = new Date();
+        kb('reg', tarteaucitron.user.kobanapi);
+        tarteaucitron.addScript(tarteaucitron.user.kobanurl, '', function() {
+        });
 // matomo
 
 /*