From f5b074de6184c54a9cbc99b97e2a4729f03fdabf Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Tue, 22 Mar 2022 17:04:13 +0100 Subject: [PATCH] Fix #892 --- tarteaucitron.services.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index e2a279f..106640e 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -32,6 +32,25 @@ tarteaucitron.services.iframe = { } }; +// userpilot +tarteaucitron.services.userpilot = { + "key": "userpilot", + "type": "analytic", + "name": "UserPilot", + "uri": "https://userpilot.com/privacy-policy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + if (tarteaucitron.user.userpilotToken === undefined) { + return; + } + + window.userpilotSettings = {token: tarteaucitron.user.userpilotToken}; + tarteaucitron.addScript('https://js.userpilot.io/sdk/latest.js'); + } +}; + tarteaucitron.services.piwikpro = { "key": "piwikpro", "type": "analytic",