Skip to content

Commit

Permalink
Reformat tiktok service
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed May 16, 2024
1 parent 7b6a957 commit 926cafd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
25 changes: 15 additions & 10 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -6559,14 +6559,19 @@ 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 () {
"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;
}

!function (w, d, t) {
w.TiktokAnalyticsObject = t;
var ttq = w[t] = w[t] || [];
Expand Down Expand Up @@ -6594,8 +6599,8 @@ tarteaucitron.services.tiktok = {
if (typeof tarteaucitron.user.tiktokMore === "function") {
tarteaucitron.user.tiktokMore();
}
},
}
}
};

// Klaviyo
tarteaucitron.services.klaviyo = {
Expand All @@ -6612,4 +6617,4 @@ tarteaucitron.services.klaviyo = {
}
tarteaucitron.addScript('//static.klaviyo.com/onsite/js/klaviyo.js?company_id=' + tarteaucitron.user.klaviyoCompanyId);
}
};
};
2 changes: 1 addition & 1 deletion tarteaucitron.services.min.js

Large diffs are not rendered by default.

0 comments on commit 926cafd

Please sign in to comment.