Skip to content

Commit

Permalink
Add a "consent" call after clarity service initialization as document…
Browse files Browse the repository at this point in the history
  • Loading branch information
bastien-effetb committed Dec 19, 2024
1 parent 2425c40 commit a9450b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,11 @@ tarteaucitron.services.freshsalescrm = {
"cookies": [],
"js": function () {
"use strict";

if (tarteaucitron.user.freshsalescrmId === undefined) {
return;
}

tarteaucitron.addScript('https://eu.fw-cdn.com/' + tarteaucitron.user.freshsalescrmId + '.js');
}
};
Expand Down Expand Up @@ -2472,7 +2472,9 @@ tarteaucitron.services.clarity = {

window["clarity"] = window["clarity"] || function () { (window["clarity"].q = window["clarity"].q || []).push(arguments) };

tarteaucitron.addScript('https://www.clarity.ms/tag/' + tarteaucitron.user.clarity);
tarteaucitron.addScript('https://www.clarity.ms/tag/' + tarteaucitron.user.clarity, '', function() {
window["clarity"]("consent");
});
}
};

Expand Down

0 comments on commit a9450b7

Please sign in to comment.