Product Analytics Data Collected

Overview

Product Analytics collects user activity data as events. Each event has two types of data:

  • Telemetry: Quantifiable values used to track and compare activity (for example, view.time_spent).
  • Attributes: Descriptive values used to filter and break down measurements in your analysis (for example, device.type or geo.country).

Every event includes the default attributes. Each event type also has specific telemetry and attributes.

To identify individual users across sessions, Product Analytics relies on the usr.id and usr.email attributes.

Product Analytics uses the same SDKs and configuration as Real User Monitoring (RUM) to collect data. Unlike RUM, Product Analytics does not collect Errors, Resources, Long Tasks, or Vitals events. For the full list of RUM event types and attributes, see the data collected pages for browser, iOS, and Android.
Event TypeRetentionDescription
Session15 monthsA session represents a real user journey through your application. It begins when a user opens the application and remains open as long as the user is active. All events generated during the session share the same session.id attribute. Note: The session resets after 15 minutes of inactivity.
View15 monthsA view represents a unique page or screen a user visits within a session. In a browser, a view is created each time a user visits a page. On mobile, a view corresponds to a screen or screen segment. All events generated while a user is on a view share the same view.id attribute.
Action15 monthsAn action represents user activity in your application, such as a click, tap, swipe, or scroll. Actions are automatically collected by the SDK. Each action is attached to the view it was generated in with a unique action.id.
Labeled Action15 monthsA labeled action is a custom name applied to an autocaptured action using Action Management. Labeled actions allow you to organize and analyze specific user interactions without writing code.

Default attributes

The following attributes are attached to all events by default.

General

AttributeTypeDescription
datenumberTimestamp of the event.
typestringThe type of the event (for example, view or action).
servicestringThe unified service name for this application used to correlate user sessions.
application.idstringThe Datadog application ID.
application.namestringThe Datadog application name.

Device

AttributeTypeDescription
device.brandstringThe device brand as reported by the device.
device.modelstringThe device model as reported by the device.
device.namestringThe device name as reported by the device.
device.typestringThe device type as reported by the device (for example, Mobile, Tablet, or Desktop).

Operating system

AttributeTypeDescription
os.namestringThe OS name as reported by the device.
os.versionstringThe OS version as reported by the device.
os.version_majorstringThe major OS version as reported by the device.

Geolocation

The following attributes are derived from the IP address of the session.

Note: To stop collecting geolocation attributes, change the setting in Application Management.

AttributeTypeDescription
geo.countrystringName of the country.
geo.country_iso_codestringISO code of the country (for example, US or FR).
geo.country_subdivisionstringName of the first subdivision level of the country (for example, California or Sarthe).
geo.continent_codestringTwo-letter continent code (for example, EU for Europe or NA for North America).
geo.continentstringName of the continent.
geo.citystringName of the city (for example, San Francisco or Paris).

User attributes

You can enable tracking user info globally to collect and apply user attributes to all events.

AttributeTypeDescription
usr.idstringIdentifier of the user.
usr.namestringName of the user.
usr.emailstringEmail of the user.

Event-specific attributes

The following attributes are specific to each event type.

Session attributes

AttributeTypeDescription
session.idstringUnique ID of the session.
session.typestringType of the session. The value is user for Product Analytics.
session.is_activeBooleanIndicates whether the session is active. The session ends after 4 hours of activity or 15 minutes of inactivity.
session.time_spentnumber (nanoseconds)Time spent on the session.
session.view.countnumberCount of all views collected for this session.
session.action.countnumberCount of all actions collected for this session.
session.initial_view.urlstringURL of the initial view of the session.
session.initial_view.namestringName of the initial view of the session.
session.last_view.urlstringURL of the last view of the session.
session.last_view.namestringName of the last view of the session.
session.ipstringIP address of the session. To stop collecting this attribute, change the setting in Application Management.
session.useragentstringBrowser or device identifier used to determine device type and version.
session.has_replayBooleanIndicates whether the session has a Session Replay recording attached.

View attributes

AttributeTypeDescription
view.idstringUnique ID of the view.
view.urlstringURL of the page or canonical name of the screen corresponding to the event.
view.namestringCustomizable name of the view.
view.is_activeBooleanIndicates whether the view is active.
view.time_spentnumber (nanoseconds)Time spent on this view.
view.action.countnumberCount of all actions collected for this view.
view.loading_timenumber (nanoseconds)Time until the view is ready and no network request or DOM mutation is occurring.
view.interaction_to_next_view_timenumber (nanoseconds)Time between the last user interaction in the previous view and the start of this view.

UTM attributes

Note: UTM attributes are only available for browser applications.

AttributeTypeDescription
view.url_query.utm_sourcestringThe parameter in the URL tracking the source of traffic.
view.url_query.utm_mediumstringThe parameter in the URL tracking the channel where the traffic is coming from.
view.url_query.utm_campaignstringThe parameter in the URL identifying the specific marketing campaign tied to that view.
view.url_query.utm_contentstringThe parameter in the URL identifying the specific element a user clicked within a marketing campaign.
view.url_query.utm_termstringThe parameter in the URL tracking the keyword a user searched to trigger a given campaign.

Action attributes

AttributeTypeDescription
action.idstringUnique ID of the user action.
action.typestringType of the user action (for example, click, tap, or application_start).
action.namestringName of the user action (for example, Click on #checkout).
action.target.namestringElement that the user interacted with. Only available for automatically collected actions.
action.loading_timenumber (nanoseconds)The loading time of the action.

Frustration signals

Note: Frustration signals are only available for browser applications.

Measurements

AttributeTypeDescription
session.frustration.countnumberCount of all frustration signals associated with one session.
view.frustration.countnumberCount of all frustration signals associated with one view.

Attributes

AttributeTypeDescription
action.frustration.type:dead_clickstringDead clicks detected by the RUM Browser SDK.
action.frustration.type:rage_clickstringRage clicks detected by the RUM Browser SDK.
action.frustration.type:error_clickstringError clicks detected by the RUM Browser SDK.

Further reading