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

@@ -16,5 +16,7 @@ $(document).ready(function () {
$('.home-featuredbox-links a').hover(
function () { $(this).next('var').addClass('active') },
function () { $(this).next('var').removeClass('active') }
).click(function () { g_trackEvent('Featured Box', 'Click', this.title) }
).each( function () { g_trackEvent('Featured Box', 'Impression', this.title) }
)
});