Add Tawk.to

This commit is contained in:
Amauri CHAMPEAUX 2018-09-26 12:07:02 +02:00 committed by GitHub
parent 131021357d
commit 0bbe60633d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -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');
}
};