
window.analytics.callOnReady(function(){
    
    $('a').click(function(){
        var href = $(this).attr('href');
        if (/documents-downloads\/file\/[0-9]+$/.test(href)) {
            window.analytics.trackers.push(['_trackEvent', 'Download', href, $(this).text()]);
        }
    });

    if ($(".logged").length > 0) {
        window.analytics.trackers.push(['_setCustomVar', 2, 'User', 'With account', 1]);
    }

});


