Skip to content

Commit

Permalink
Add screeb fix #1179
Browse files Browse the repository at this point in the history
  • Loading branch information
AmauriC committed Jan 18, 2024
1 parent e61c83d commit c748145
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions tarteaucitron.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,40 @@ tarteaucitron.services.iframe = {
}
};

// screeb
tarteaucitron.services.screeb = {
"key": "screeb",
"type": "support",
"name": "Screeb",
"uri": "https://screeb.app/gdpr-privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";

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

window['ScreebObject'] = '$screeb';
window['$screeb'] = window['$screeb'] || function() {
var d = arguments;
return new Promise(function(a, b) {
(window['$screeb'].q = window['$screeb'].q || []).push({
v: 1,
args: d,
ok: a,
ko: b
})
})
};

tarteaucitron.addScript('https://t.screeb.app/tag.js', '$screeb');

window.$screeb('init', tarteaucitron.user.screebId);
}
};

// pipedrive
tarteaucitron.services.pipedrive = {
"key": "pipedrive",
Expand Down
2 changes: 1 addition & 1 deletion tarteaucitron.services.min.js

Large diffs are not rendered by default.

0 comments on commit c748145

Please sign in to comment.