Add service for Emolytics
This commit is contained in:
parent
d514890675
commit
6f539af64d
|
|
@ -2698,3 +2698,23 @@ tarteaucitron.services.getquanty = {
|
||||||
tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
|
tarteaucitron.addScript('https://get.smart-data-systems.com/track?site_id=' + tarteaucitron.user.getguanty);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// 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');
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue