From 1d6c30fd015f99826719b629759d727a04279f5b Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sat, 7 Nov 2020 09:21:32 +0100 Subject: [PATCH] Add Clarity --- tarteaucitron.services.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 7a80aae..37950bf 100644 --- a/tarteaucitron.services.js +++ b/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",