Amauri CHAMPEAUX 3 年之前
父節點
當前提交
f5b074de61
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      tarteaucitron.services.js

+ 19 - 0
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",