Add Tawk.to
This commit is contained in:
parent
131021357d
commit
0bbe60633d
|
|
@ -2412,3 +2412,24 @@ tarteaucitron.services.activecampaign = {
|
|||
tarteaucitron.addScript('https://trackcmp.net/visit?actid='+tarteaucitron.user.actid+'&e='+encodeURIComponent(trackcmp_email)+'&r='+encodeURIComponent(document.referrer)+'&u='+encodeURIComponent(window.location.href));
|
||||
}
|
||||
};
|
||||
|
||||
// tawk.to
|
||||
tarteaucitron.services.tawkto = {
|
||||
"key": "tawkto",
|
||||
"type": "support",
|
||||
"name": "Tawk.to chat",
|
||||
"uri": "https://www.tawk.to/data-protection/",
|
||||
"needConsent": true,
|
||||
"cookies": [],
|
||||
"js": function () {
|
||||
"use strict";
|
||||
if (tarteaucitron.user.tawktoId === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.Tawk_API=window.Tawk_API||{};
|
||||
window.Tawk_LoadStart=new Date();
|
||||
|
||||
tarteaucitron.addScript('https://embed.tawk.to/' + tarteaucitron.user.tawktoId + '/default');
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue