PHP logging
EventLogging::logEvent( 'InukaPageView', 21205270, $event );
extension.json setup for JavaScript logging
{
"attributes": {
"EventLogging": {
"Schemas": {
"InukaPageView": 21205270
}
}
}
}
JavaScript logging
mw.track( 'event.InukaPageView', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
| description | "Logs reading behavior of Inuka target users." |
|---|
| properties | | user_id | | type | "string" |
|---|
| required | true |
|---|
| description | "Randomly generated user id, expiring after 90 days of inactivity." |
|---|
|
|---|
| session_id | | type | "string" |
|---|
| required | true |
|---|
| description | "Randomly generated session id." |
|---|
|
|---|
| pageview_token | | type | "string" |
|---|
| required | true |
|---|
| description | "Allows deduplicating events that are sent for the same page view." |
|---|
|
|---|
| client_type | | type | "string" |
|---|
| enum | | "android-web" |
| "ios-web" |
| "kaios-web" |
| "kaios-app" |
|
|---|
| required | true |
|---|
| description | "The Wikipedia client that is being used. Starting March 2021, only `kaios-app` is used as logging from the web clients has been removed." |
|---|
|
|---|
| app_version | | type | "string" |
|---|
| required | false |
|---|
| description | "The version of the app that the user is running." |
|---|
|
|---|
| referring_domain | | type | "string" |
|---|
| required | false |
|---|
| description | "The domain the user is coming from." |
|---|
|
|---|
| load_dt | | type | "string" |
|---|
| required | true |
|---|
| description | "Time when the page was loaded." |
|---|
|
|---|
| page_open_time | | type | "integer" |
|---|
| required | true |
|---|
| description | "Total time in miliseconds the page was open." |
|---|
|
|---|
| page_visible_time | | type | "integer" |
|---|
| required | true |
|---|
| description | "Total time in miliseconds the page was visible." |
|---|
|
|---|
| section_count | | type | "integer" |
|---|
| required | true |
|---|
| description | "Number of collapsible sections on the page." |
|---|
|
|---|
| opened_section_count | | type | "integer" |
|---|
| required | true |
|---|
| description | "Number of collapsible sections on the page that were opened at least once." |
|---|
|
|---|
| page_namespace | | type | "integer" |
|---|
| required | true |
|---|
| description | "Page namespace" |
|---|
|
|---|
| is_main_page | | type | "boolean" |
|---|
| required | true |
|---|
| description | "Whether the current page is the main page." |
|---|
|
|---|
| is_search_page | | type | "boolean" |
|---|
| required | true |
|---|
| description | "Whether the current page is the search result page." |
|---|
|
|---|
| tests | | type | "array" |
|---|
| required | false |
|---|
| description | "The list of experiments in which the user is enrolled at event time" |
|---|
| items | | type | "object" |
|---|
| required | false |
|---|
| description | "An entry describing a particular experiment in which the user is enrolled." |
|---|
| properties | | name | | type | "string" |
|---|
| required | true |
|---|
| description | "The name of the experiment. For example, '2021-03-KaiOS-app-homepage-content-suggestions'." |
|---|
|
|---|
| group | | type | "string" |
|---|
| required | true |
|---|
| description | "The name of the experimental group to which the user was assigned. For example, 'control' or 'trending-articles'." |
|---|
|
|---|
|
|---|
|
|---|
|
|---|
| is_production | | type | "boolean" |
|---|
| required | false |
|---|
| description | "Whether the event comes from real production use or artificial use by developers and testers." |
|---|
|
|---|
|
|---|