This is an overview of the different kinds of data we collect in Activity Stream experiment.
These pings are captured when a user performs some kind of interaction in the add-on.
A user event ping includes some basic metadata (tab id, addon version, etc.) as well as variable fields which indicate the location and action of the event.
{
// This indicates the type of interaction
"event": "[CLICK | DELETE | BLOCK | SHARE | LOAD_MORE | SEARCH]",
// This is where the interaction occurred
"page": "[NEW_TAB | TIMELINE_ALL | TIMELINE_BOOKMARKS]",
// Optional field indicating the UI component type
"source": ["TOP_SITES" | "FEATURED" | "ACTIVITY_FEED"],
// Optional field if there is more than one of a component type on a page.
// It is zero-indexed.
// For example, clicking the second Highlight would result in an action_position of 1
"action_position": 1,
// Basic metadata
"tab_id": "-5-2",
"client_id": "26288a14-5cc4-d14f-ae0a-bb01ef45be9c",
"addon_version": "1.0.12",
"locale": "en-US",
"action": "activity_stream_event"
}{
"event": "SEARCH",
"page": "NEW_TAB",
"action": "activity_stream_event",
"tab_id": "-5-2",
"client_id": "26288a14-5cc4-d14f-ae0a-bb01ef45be9c",
"addon_version": "1.0.12",
"locale": "en-US"
}{
"event": "CLICK",
"page": ["NEW_TAB" | "TIMELINE_ALL" | "TIMELINE_BOOKMARKS"],
"source": ["TOP_SITES" | "FEATURED" | "ACTIVITY_FEED"],
"action_position": 2,
"action": "activity_stream_event",
"tab_id": "-5-3",
"client_id": "26288a14-5cc4-d14f-ae0a-bb01ef45be9c",
"addon_version": "1.0.12",
"locale": "en-US"
} {
"event": "DELETE",
"page": ["NEW_TAB" | "TIMELINE_ALL" | "TIMELINE_BOOKMARKS"],
"source": ["TOP_SITES" | "FEATURED" | "ACTIVITY_FEED"],
"action_position": 0,
"action": "activity_stream_event",
"tab_id": "-3-13",
"client_id": "83982d21-4f49-eb44-a3ed-8e9ac6f87b05",
"addon_version": "1.0.12",
"locale": "en-US"
}{
"event": "BLOCK",
"page": ["NEW_TAB" | "TIMELINE_ALL" | "TIMELINE_BOOKMARKS"],
"source": ["TOP_SITES" | "FEATURED" | "ACTIVITY_FEED"],
"action_position": 4,
"action": "activity_stream_event",
"tab_id": "-5-4",
"client_id": "26288a14-5cc4-d14f-ae0a-bb01ef45be9c",
"addon_version": "1.0.12",
"locale": "en-US"
}{
"event": "SHARE",
"page": ["NEW_TAB" | "TIMELINE_ALL" | "TIMELINE_BOOKMARKS"],
"source": "ACTIVITY_FEED",
"action_position": 0,
"action": "activity_stream_event",
"tab_id": "-3-16",
"client_id": "83982d21-4f49-eb44-a3ed-8e9ac6f87b05",
"addon_version": "1.0.12",
"locale": "en-US"
}When a session ends, the browser will send a "activity_stream_session" ping to our metrics servers. This ping contains the length of the session, a unique reason for why the session ended, and some additional metadata.
All "activity_stream_session" pings have the following basic shape. Some fields are variable.
{
// These are all variable. See below for what causes different unload_reasons
"url": "resource://activity-streams/data/content/activity-streams.html#/[timeline][/bookmarks]",
"load_reason": "[newtab | focus]",
"unload_reason": "[navigation | unfocus | refresh]",
"total_history_size": 446,
"total_bookmarks": 57,
"tab_id": "-5-2",
"load_latency": 774,
"client_id": "26288a14-5cc4-d14f-ae0a-bb01ef45be9c",
"addon_version": "1.0.12",
"locale": "en-US",
"page": "NEW_TAB",
"action": "activity_stream_session",
"session_duration": 4199
}Here are different scenarios that cause a session end event to be sent and the corresponding "unload_reason" included in the ping:
- After a search:
"navigation" - Clicking on something (top site, highlight, activity feed item):
"navigation" - Switching to another tab:
"unfocus" - Closing the browser:
"unfocus" - Refreshing:
"refresh" - Navigating to a new URL via the url bar:
"navigation"