浏览代码

Add contentsquare

Amauri CHAMPEAUX 5 年之前
父节点
当前提交
b7f5e579d5
共有 1 个文件被更改,包括 17 次插入0 次删除
  1. 17 0
      tarteaucitron.services.js

+ 17 - 0
tarteaucitron.services.js

@@ -454,6 +454,23 @@ tarteaucitron.services.clicmanager = {
     }
 };
 
+// contentsquare
+tarteaucitron.services.contentsquare = {
+    "key": "contentsquare",
+    "type": "api",
+    "name": "ContentSquare",
+    "uri": "https://docs.contentsquare.com/uxa-en/#collected-data",
+    "needConsent": true,
+    "cookies": ['_cs_id', '_cs_s', '_cs_vars', '_cs_ex', '_cs_c', '_cs_optout'],
+    "js": function () {
+        "use strict";
+        if (tarteaucitron.user.contentsquareID === undefined) {
+            return;
+        }
+        tarteaucitron.addScript('//t.contentsquare.net/uxa/'+tarteaucitron.user.contentsquareID+'.js');
+    }
+};
+
 // crazyegg
 tarteaucitron.services.crazyegg = {
     "key": "crazyegg",