Last modified: 2014-03-25 01:09:27 UTC
We use event logging to log clicks in left nav. The problem with it is that we don't redirect to the given link until EL request finishes. Usually it's fast, but on a mobile connection it can take up to a few seconds. There should be either a hard limit on the EL request (500ms?) or EL should be done server-side or after the destination page is loaded (by hijacking the link with a query param or a hash).
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1702
Let's change this as follows: * When clicking on something - instead of using async event logging set something in localStorage and then on the subsequent page read this and event log it. This will also clean up data for cases where a user clicks on a link and then changes their mind and clicks on another link. In the current method both links are clicked in this new one only the 2nd link (the visited page) will be logged.
Change 116035 had a related patch set uploaded by Jdlrobson: Delay EventLogging click track until next page load https://gerrit.wikimedia.org/r/116035
Change 116035 merged by jenkins-bot: Delay EventLogging click track until next page load https://gerrit.wikimedia.org/r/116035