Merge pull request #313 from gregoireskazy/master
Add service for Emolytics
This commit is contained in:
commit
1ae1ae5b56
|
|
@ -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",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue