Skip to content

Commit 76151fa

Browse files
committed
Add Brevo Conversations
1 parent e413ef7 commit 76151fa

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

‎tarteaucitron.services.js‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,30 @@ tarteaucitron.services.iframe = {
3535
}
3636
};
3737

38+
// brevochat
39+
tarteaucitron.services.brevochat = {
40+
"key": "brevochat",
41+
"type": "support",
42+
"name": "Brevo Conversations",
43+
"uri": "https://help.brevo.com/hc/fr/sections/18503544961042",
44+
"needConsent": true,
45+
"cookies": [],
46+
"js": function () {
47+
"use strict";
48+
49+
if (tarteaucitron.user.brevoConversationsId === undefined) {
50+
return;
51+
}
52+
53+
window.BrevoConversationsID = tarteaucitron.user.brevoConversationsId;
54+
window['BrevoConversations'] = window['BrevoConversations'] || function() {
55+
(window['BrevoConversations'].q = window['BrevoConversations'].q || []).push(arguments);
56+
};
57+
58+
tarteaucitron.addScript('https://conversations-widget.brevo.com/brevo-conversations.js');
59+
}
60+
};
61+
3862
// matomoheatmap
3963
tarteaucitron.services.matomoheatmap = {
4064
"key": "matomoheatmap",

‎tarteaucitron.services.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)