title: analytics/legacy/desktopwebuiactionstracking description: >- Logs when certain UI elements get visible and when user interacts with those on desktop. $id: /analytics/legacy/desktopwebuiactionstracking/1.4.4 $schema: 'https://json-schema.org/draft-07/schema#' type: object allOf: - $ref: /fragment/analytics/legacy/eventcapsule/1.2.0 - properties: event: properties: $ref: /fragment/analytics/web_accessibility/1.0.1#/properties - required: - event properties: event: type: object required: - action - token - isSidebarCollapsed - isAnon properties: action: description: >- Type of interaction. `Shown` is a special interaction, not triggered by user. It can be sent to mark that given dynamic UI element got presented to the user. type: string enum: - init - show - click skin: description: >- The skin. Right now the schema is only used on Vector, but this is reserved for future usage. type: string skinVersion: description: The skin version. 1 = legacy. 2 = modern. type: integer name: description: >- Uniquely describes the thing that was interacted. Clicks on element with `data-event-name` attribute will be automatically tracked, using `data-event-name` as `name`. Not required for init events. type: string pageNamespace: description: >- The namespace ID of the page with which the user was interacting. type: integer token: description: >- Session token that survives across pages (mw.user.sessionId()), but not when browser restarts. type: string pageToken: description: >- One-time token per page load (consistent with Schema:EditAttemptStep and other schemas that use mw.user.getPageviewToken). type: string isSidebarCollapsed: description: Is the sidebar collapsed? type: boolean isAnon: description: Is the user viewing anonymously? type: boolean editCountBucket: description: Number of edits by user. Set only if user is logged in. type: string enum: - 0 edits - 1-4 edits - 5-99 edits - 100-999 edits - 1000+ edits viewportSizeBucket: description: Users screen resolution in CSS pixels. type: string enum: - '<320px' - 320px-719px - 720px-999px - 1000px-1199px - 1200px-2000px - '>2000px' examples: - event: action: init token: example_token pageToken: example_page_token isSidebarCollapsed: false isAnon: false meta: dt: '2020-04-02T19:11:20.942Z' id: b0caf18d-6c7f-4403-947d-2712bbe28610 stream: eventlogging_DesktopWebUIActionsTracking dt: '2020-04-02T19:11:20.942Z' client_dt: '2020-04-02T19:11:20.942Z' $schema: $ref: '#/$id' schema: DesktopWebUIActionsTracking