Jump to content

User:Alex Paskulin/Sandbox/Web schema

From Wikitech

This page documents Metric Platform's default schema for web.

Schema definition: analytics/product_metrics/web/base

Example event

{
...
}

Default properties

Metrics Platform also provides a set of properties that are provided with every event by default, such as the event timestamp.

  • action
  • $schema
  • dt
  • meta.stream
  • meta.submit_interaction_stream
  • meta.domain
  • meta.id
  • meta.dt
  • meta.request_id

Interaction data

In addition to action, Metrics Platform supports interaction data that you can customize to fit the needs of your instrument. You can set these properties to any meaningful value to provide the data required for your event.

  • action_context
  • action_source
  • action_subtype
  • element_friendly_name
  • element_id
  • experiments
  • funnel_entry_token
  • funnel_event_sequence_position
  • funnel_name
  • instrument_name

Client support: TODO

Contextual attributes

Metrics Platform provides a set of commonly-used fields that you can enable for your event, such as the page name, MediaWiki version, and content language.

  • agent_app_install_id
  • agent_client_platform
  • agent_client_platform_family
  • page_id
  • page_title
  • page_namespace
  • page_namespace_name
  • page_revision_id
  • page_wikidata_id
  • page_wikidata_qid
  • page_content_language
  • page_is_redirect
  • page_user_groups_allowed_to_move
  • page_user_groups_allowed_to_edit
  • mediawiki_skin
  • mediawiki_version
  • mediawiki_is_production
  • mediawiki_is_debug_mode
  • mediawiki_database
  • mediawiki_site_content_language
  • mediawiki_site_content_language_variant
  • performer_is_logged_in
  • performer_id
  • performer_name
  • performer_session_id
  • performer_active_browsing_session_token
  • performer_pageview_id
  • performer_groups
  • performer_is_bot
  • performer_is_temp
  • performer_language
  • performer_language_variant
  • performer_can_probably_edit_page
  • performer_edit_count
  • performer_edit_count_bucket
  • performer_registration_dt

Client support: JavaScript | PHP