Page MenuHomePhabricator

Homepage - link-click events not recorded when links opened in a different tab/window
Closed, DeclinedPublic

Description

  1. On Special:Homepage open the Console and add mw.trackSubscribe( 'event.HomepageModule', console.log); to monitor events on the page.
  2. Click on any links ("Preserve log upon navigation" should be enabled) - the event would be immediately present as 'link-click' in the Console. Checking all-events.log on deployment-eventlog05.eqiad.wmflabs will also present full info for the event.
  3. Click to open a link in a different tab/window - the event won't be recorded.

Event Timeline

@Catrope -- I believe this is a known limitation of our EventLogging, right?

If you open via shift-click or ctrl-click or middle-click, I'd expect that to be logged (although it is possible to manually exempt them). If you open via the right-click menu, that's not technically a click event. It is possible to capture the right click, but not possible to tell what the user did in the menu. So it's more of a limitation of browser instrumentation in general. Some sites use proxy URLs to get around that (e.g. try right-clicking on a search result link on google.com and watch how the URL changes) but it has all kinds of drawbacks.

Thanks, @Tgr ! I wonder if it's possible to estimate how many users open links in a different tab/window. We might be missing a good chunk of relevant stats.

I suppose we could log rightclick events, and correlate them with events that correspond to opening a new suggested task and are close in time.

@Etonkovidova -- thanks for thinking about this. I'm not too worried about it, for two reasons:

  • This would only be an issue on desktop, not mobile.
  • Our reports that use this EventLogging are mostly for us to track increases and decreases over time -- not as measures of exact numbers of how many users do a certain thing. We already know that we're missing some portion of users who don't have Javascript or don't get events logged for other reasons, so we know the numbers aren't perfect.

@Etonkovidova -- thanks for thinking about this. I'm not too worried about it, for two reasons:

  • This would only be an issue on desktop, not mobile.
  • Our reports that use this EventLogging are mostly for us to track increases and decreases over time -- not as measures of exact numbers of how many users do a certain thing. We already know that we're missing some portion of users who don't have Javascript or don't get events logged for other reasons, so we know the numbers aren't perfect.

Thanks for clarification! In that case let's close this ticket as Declined?

  • This would only be an issue on desktop, not mobile.

FWIW, you can open links in new tab on mobile (via the long-press context menu) so the issue does apply there, although it's less convenient as a navigation tool than on desktop so maybe less likely to be used.