Browse Source

Add Clarity

Amauri CHAMPEAUX 4 years ago
parent
commit
1d6c30fd01
1 changed files with 17 additions and 0 deletions
  1. 17 0
      tarteaucitron.services.js

+ 17 - 0
tarteaucitron.services.js

@@ -559,6 +559,23 @@ tarteaucitron.services.crazyegg = {
     }
 };
 
+// clarity
+tarteaucitron.services.clarity = {
+    "key": "clarity",
+    "type": "analytic",
+    "name": "Clarity",
+    "uri": "https://clarity.microsoft.com/",
+    "needConsent": true,
+    "cookies": [],
+    "js": function () {
+        "use strict";
+
+        window["clarity"]= window["clarity"]||function(){(window["clarity"].q= window["clarity"].q||[]).push(arguments)};
+
+        tarteaucitron.addScript('https://www.clarity.ms/tag/' + tarteaucitron.user.clarity);
+    }
+};
+
 // criteo
 tarteaucitron.services.criteo = {
     "key": "criteo",