Background
Following on from T296415, we'd like to know how many users are agreeing to or disagreeing with (?) IP Info's terms of use.
This is split from T296472: Log when a user enables/disables IP Info.
AC
- When I agree with IP Info's terms of use via Special:Preferences, an event should be logged
- The event_action property should be "accept_disclaimer"
- The event_source property should be "special_preferences"
- When I disagree with IP Info's terms of use, an event should be logged
- The event_action property should be "uncheck_iagree"
- The event_source property should be "special_preferences"
Notes
- See the current.yaml files in the subdirectories in https://gerrit.wikimedia.org/r/plugins/gitiles/schemas/event/secondary/+/refs/heads/master/jsonschema/analytics/mediawiki for numerous examples of JSON Schema schemas that are used in production
- wt:Event Platform/Instrumentation How To is a step-by-step guide to creating a creating a schema and validating an event with it
- https://www.mediawiki.org/wiki/MediaWiki-Docker/Configuration_recipes/EventLogging is a step-by-step guide to setting up your local development environment