I use GA trackEvent to record a user click event in my site autocomplete. When a user clicks on an autocomplete item, I record two events, and then redirect the page to the results page. But the problem is that the sum of the two actions "click" and "view" is not equal, the sum of "click"> the sum of "view". I see that two requests are sent to firebug, but both of them are canceled because the page is redirected. Despite the fact that they are canceled, I see the result in GA.I just can not understand why they are not equal? Later one failed sometimes?
Here is the piece of code:
//trackEvent just use _gaq.push("trackEvent", xxx) trackEvent("search", "click"); trackEvent("search", "view"); window.location.href = des;
javascript google-analytics
user1610957
source share