Background
Following on from T296415: Basic ipinfo instrument setup and first events, we'd like to know how many users see the terms of use agreement infobox treatment and bounce from it.
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 accept the terms of the disclaimer
- The event_action property should be "accept_disclaimer"
- When I have seen the terms of use agreement infobox treatment and I close the browser tab/window before accepting the agreement, an event should be logged
- The event_action property should be "close_disclaimer"
Notes
- 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
- For performance reasons, listen for the beforeunload event (not the unload event)
- 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