From 76d264fd71b16c96f8a28733d394e181f222f69e Mon Sep 17 00:00:00 2001 From: Amauri CHAMPEAUX Date: Sun, 8 May 2022 11:01:13 +0200 Subject: [PATCH] Add tiktok (fix #933) --- tarteaucitron.services.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index bccf5d4..33ab7d2 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -5304,3 +5304,21 @@ tarteaucitron.services.weborama = { } }; +// tiktok +tarteaucitron.services.tiktok = { + "key": "tiktok", + "type": "analytic", + "name": "Tiktok", + "uri": "https://www.tiktok.com/legal/tiktok-website-cookies-policy", + "needConsent": true, + "cookies": [], + "js": function () { + "use strict"; + + if (tarteaucitron.user.tiktokId === undefined) { + return; + } + + tarteaucitron.addScript('https://analytics.tiktok.com/i18n/pixel/sdk.js?sdkid=' + tarteaucitron.user.tiktokId); + } +};