Add Crazyegg

This commit is contained in:
Amauri CHAMPEAUX 2015-05-29 18:19:23 +02:00
parent f0cb12be1f
commit a761105ec1
1 changed files with 19 additions and 0 deletions

View File

@ -215,6 +215,25 @@ tarteaucitron.services.clicmanager = {
}
};
// crazyegg
tarteaucitron.services.crazyegg = {
"key": "crazyegg",
"type": "analytic",
"name": "Crazy Egg",
"uri": "https://www.crazyegg.com/privacy",
"needConsent": true,
"cookies": [],
"js": function () {
"use strict";
if (tarteaucitron.user.crazyeggId === undefined) {
return;
}
tarteaucitron.addScript('//script.crazyegg.com/pages/scripts/' + tarteaucitron.user.crazyeggId.substr(0, 4) + '/' + tarteaucitron.user.crazyeggId.substr(4, 4) + '.js');
}
};
// criteo
tarteaucitron.services.criteo = {
"key": "criteo",