From 37e9da993e4a52b37f217f7d9d41e0d88d1c23be Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Fri, 3 Feb 2023 12:34:03 +0100 Subject: [PATCH] Add Force24 Fix #1048 --- tarteaucitron.services.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index aa70f1e..8e36094 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -37,6 +37,33 @@ tarteaucitron.services.iframe = { } }; +// force24 +tarteaucitron.services.force24 = { + "key": "force24", + "type": "analytic", + "name": "Force24", + "uri": "https://support.force24.co.uk/support/solutions/articles/79000128057-cookie-policies", + "needConsent": true, + "cookies": ['F24_autoID', 'F24_personID'], + "js": function () { + "use strict"; + + if (tarteaucitron.user.force24trackingId === undefined || tarteaucitron.user.force24clientId === undefined) { + return; + } + + window.Force24Object = "f24", window["f24"] = window["f24"] || function() { + window["f24"].q = window["f24"].q || [], + window["f24"].q.push(arguments) + }, window["f24"].l = 1 * new Date; + + tarteaucitron.addScript('https://static.websites.data-crypt.com/scripts/activity/v3/inject-v3.min.js'); + + f24('config', 'set_tracking_id', tarteaucitron.user.force24trackingId); + f24('config', 'set_client_id', tarteaucitron.user.force24clientId); + } +}; + // tiktokvideo tarteaucitron.services.tiktokvideo = { "key": "tiktokvideo",