From 333d6c50053ee0e26ab7fa4a951616f8dbf9f46c Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Mon, 9 Jan 2023 11:44:16 +0100 Subject: [PATCH] Add CollectChat fix #1030 --- tarteaucitron.services.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 251f0de..42dfd08 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -32,6 +32,27 @@ tarteaucitron.services.iframe = { } }; +// collectchat +tarteaucitron.services.collectchat = { + "key": "collectchat", + "type": "other", + "name": "Collect Chat", + "uri": "https://collect.chat/privacy/", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.collectchatId === undefined) { + return; + } + + window.CollectId = tarteaucitron.user.collectchatId; + + tarteaucitron.addScript('https://collectcdn.com/launcher.js'); + } +}; + // eulerian tarteaucitron.services.eulerian = { "key": "eulerian",