Page MenuHomePhabricator

Investigate logging on right-click link navigation
Closed, DeclinedPublic

Description

In most browsers, users can right-click and open a link in a new window or tab. Currently, this is not being logged.

Investigate doing so, perhaps using the contextmenu event. I'm not sure we could log whether they actually "clicked" the link, but we should be able to at least detect the right-click in most browsers.

https://developer.mozilla.org/en-US/docs/Mozilla_event_reference/contextmenu


Version: unspecified
Severity: normal

Details

Reference
bz44480

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:21 AM
bzimport set Reference to bz44480.

swalling wrote:

Muy importante. Without more accurate click logging, we have to use page-impression on the link destination for cohort and funnel analysis, because we're underestimating clicks.

[moving from MediaWiki extensions to Analytics product - see bug 61946]

Is this task still relevant? It seems the logic provided by EventLogging was simplified to just the logging of the beacon. The attachment to click handler is left to the caller. I don't know if we still have any events that get triggered from clicks (maybe Popups?), but if we do we probably still don't track right clicks. I suppose it depends on individual cases whether or not they should be logged since it doesn't mean open per se (could be "copy", "Speach: Start", "Inspect element, "Open as ..<user>", "Open in Incognito", etc.) .

Doesn't seem relevant, we do not track generic clicks on pages. Declining

Doesn't seem relevant, we do not track generic clicks on pages. Declining

To avoid misunderstandings, there are actually situations where we track "right-click and open a link in a new window or tab" events (indeed as part of the Popups schema, cf. T147846). But as @Krinkle said, this is handled on the caller side as part of the individual instrumentation, so it's not a concern of the Analytics Engineering team and it's safe to close this task.