Jump to content

Metrics Platform/Contextual attributes/JavaScript

From Wikitech

This page documents the contextual attributes supported by the Metrics Platform JavaScript client. For property descriptions and types, see the web base schema definition.

The JavaScript client supports these contextual attributes:[1]

Included automatically:[2]

  • agent_client_platform
  • agent_client_platform_family

Optional:

  • agent_app_install_id
  • 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
  1. gitlab:repos/data-engineering/metrics-platform/-/blob/main/js/src/ContextUtils.js
  2. gitlab:repos/data-engineering/metrics-platform/-/blob/main/js/src/ContextController.js