Merge pull request #313 from gregoireskazy/master

Add service for Emolytics
This commit is contained in:
Amauri CHAMPEAUX 2019-06-13 09:00:33 +02:00 committed by GitHub
commit 1ae1ae5b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 0 deletions

View File

@ -2726,6 +2726,26 @@ tarteaucitron.services.getquanty = {
} }
}; };
// emolytics
tarteaucitron.services.emolytics = {
"key": "emolytics",
"type": "analytic",
"name": "Emolytics",
"uri": "https://www.emolytics.com/main/privacy-policy.php",
"needConsent": true,
"cookies": ['__hssc', '__hssrc', '__hstc', '_ga', '_gid', 'hubspotutk', 'lang', 'incap_ses_', 'nlbi_', 'visid_incap_'],
"js": function () {
"use strict";
if (tarteaucitron.user.emolyticsID === undefined) {
return;
}
var scriptEmolytics = document.createElement('script');
scriptEmolytics.text = 'var getsmily_id="'+tarteaucitron.user.emolyticsID+'";';
document.getElementsByTagName('body')[0].appendChild(scriptEmolytics);
tarteaucitron.addScript('https://cdn.emolytics.com/script/emolytics-widget.js')
}
};
// youtubeapi // youtubeapi
tarteaucitron.services.youtubeapi = { tarteaucitron.services.youtubeapi = {
"key": "youtubeapi", "key": "youtubeapi",