Page MenuHomePhabricator

Log when the user sees and bounces from the terms of use agreement in the infobox
Open, Needs TriagePublic

Description

Background

Following on from T296415: Basic ipinfo instrument setup and first events [L], we'd like to know how many users see the terms of use agreement infobox treatment and bounce from it.

Open Questions
  1. Do we want to know how many unique users see the terms of use agreement? If so, then we need to log a unique value per user. However, we must avoid logging the user ID whenever possible. Could we salt and hash the user's ID? Would there be any privacy and/or security implications in sending a salted and hashed user ID to the client?
AC
  • When I sees the terms of use agreement infobox treatment, an event should be logged
    • The event_action property should be "init_disclaimer"
  • When I have seen the terms of use agreement infobox treatment and I close the browser tab/window, an event should be logged
    • The event_action property should be "close_disclaimer"
Notes
  1. At the time of writing, the user will only see the terms of use agreement infobox treatment when:
    • They have enabled IP Info via Special:Preferences; and
    • They navigate to /wiki/Special:Contributions/$ip
  2. For performance reasons, listen for the beforeunload event (not the unload event)

Event Timeline

Per yesterday's AHT Estimation meeting, @Niharika will confirm with @jwang whether we intend to count unique users (and therefore send a unique token to deduplicate users during analysis).