From 2e8ac445bb7c03000b47bbbb2c38223fc0e3c995 Mon Sep 17 00:00:00 2001 From: guillaumeKoban <40759279+guillaumeKoban@users.noreply.github.com> Date: Mon, 2 Jul 2018 15:10:50 +0200 Subject: [PATCH] Add Koban service --- README.md | 1 + tarteaucitron.services.js | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/README.md b/README.md index 75c6b96..a81ba9f 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Bonus: * Marketing Automation & CRM * Mautic * Webmecanik Automation + * Koban * Social network * AddThis diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 03e1955..425f763 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -2200,3 +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() { + }); + } +}; +