Setup/Tracking

* added tracking code for Google Analytics
   - enabling is optional
   - add account in config to enable tracking
 * removed usage tracking
   - the results were just seriously depressing..
This commit is contained in:
Sarjuuk
2015-07-13 22:48:46 +02:00
parent 7eda6dd778
commit b6e1bcaeac
9 changed files with 256 additions and 27 deletions

View File

@@ -982,6 +982,11 @@ function fi_setCriteria(cr, crs, crv) {
for (i = 0; i < _.length; ++i) {
if (_[i].value == cr[0]) {
_[i].selected = true;
if (fi_Lookup(cr[0])) {
g_trackEvent('Filters', fi_type, fi_Lookup(cr[0]).name);
}
break;
}
}
@@ -990,6 +995,10 @@ function fi_setCriteria(cr, crs, crv) {
var a = $WH.ge('fi_addcriteria');
for (i = 1; i < cr.length && i < 5; ++i) {
fi_criterionChange(fi_addCriterion(a, cr[i]), crs[i], crv[i]);
if (fi_Lookup(cr[i])) {
g_trackEvent('Filters', fi_type, fi_Lookup(cr[i]).name);
}
}
}