当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Google Analytics Event Tracking issue

问题描述:

I am currently working on a website where a lot of people use to login to a platform. I use to be able to track logins and report on traffic excluding logins to get a good idea of the amount of traffic I get to the site. After updating the site and adding another login box, the event not longer triggers in Google Analytics.

www.infotrack.com.au is the URL. There are two logins on the home page.

function doLoginIE() {

var entryPoint = typeof urlParams["ReturnUrl"] !== "undefined" ? urlParams["ReturnUrl"] : "";

$('#EntryPoint').val(entryPoint);

var _this = this; // The form input element that was just clicked

_gaq.push(['_set','hitCallback',function() {

$(_this).parents('form').first().submit(); // Submit underlying form

}]);

_gaq.push(['_trackEvent', 'Membership', 'Login', $('#UsernameIE').val()]);

return !window._gat; // Ensure that the event is bubbled if GA is not loaded

}

if (typeof urlParams["error"] !== "undefined") {

$('#InvalidLogin3').css("visibility","visible");

分享给朋友:
您可能感兴趣的文章:
随机阅读: