Product Analytics

This dataset represents Product Analytics data collected by Datadog, built on top of Real User Monitoring (RUM). Product Analytics provides insights into user behavior, engagement, and conversion across web and mobile applications. It enables analysis of user journeys, funnels, feature adoption, and product usage patterns to drive data-driven product decisions.

dd.product_analytics

Product Analytics Public Documentation

Product Analytics Explorer Documentation

Query Parameters

This dataset uses a polymorphic table function. You must specify parameters when querying.

ParameterTypeRequiredDescription
columnsarray<string>YesList of fields to return for each event (e.g., ’timestamp’, ‘@session.id’, ‘@view.url’, ‘@action.name’). Must follow with AS (…) to name and type outputs.
event_typestringNoOptional event subtype to filter by (e.g., event_type => ‘action’).
filterstringNoOptional search string. For example: filter => ‘@application.name:my-app AND @action.type:click’.
from_timestampstringNoLower time bound for the query; defaults to the query context if omitted.
to_timestampstringNoUpper time bound for the query; defaults to the query context if omitted.

Example Queries

-- Analyze user actions for funnel analysis
SELECT * FROM dd.product_analytics(
  columns => ARRAY[
    'timestamp',
    '@session.id',
    '@usr.id',
    '@view.url',
    '@action.name',
    '@action.type',
    '@device.type',
    '@geo.country'
  ],
  event_type => 'action',
  filter => '@application.name:checkout-app',
  from_timestamp => now() - interval '7 days',
  to_timestamp => now()
) AS (
  ts           TIMESTAMP,
  session_id   VARCHAR,
  user_id      VARCHAR,
  page_url     VARCHAR,
  action_name  VARCHAR,
  action_type  VARCHAR,
  device_type  VARCHAR,
  country      VARCHAR
);

Fields

TitleIDTypeData TypeDescription
TimestamptimestampcoretimestampTime the event was recorded. Applies to: all.
Event Type@typeevent_attributestringType of event (session, view, action). Applies to: all.
Application ID@application.idevent_attributestringUnique identifier for the application. Applies to: all.
Application Name@application.nameevent_attributestringName of the application (e.g., my-web-app). Applies to: all.
Session ID@session.idevent_attributestringUnique identifier for the user session. Applies to: all.
Session Type@session.typeevent_attributestringType of session (user, synthetics). Applies to: all.
Session Active@session.is_activeevent_attributeboolWhether the session is currently active. Applies to: session.
Session Time Spent@session.time_spentevent_attributeint64Total time spent in the session in nanoseconds. Applies to: session.
Session View Count@session.view.countevent_attributeint64Number of page views in the session. Applies to: session.
Session Action Count@session.action.countevent_attributeint64Number of user actions in the session. Applies to: session.
Session Error Count@session.error.countevent_attributeint64Number of errors in the session. Applies to: session.
Session Frustration Count@session.frustration.countevent_attributeint64Number of frustration signals in the session. Applies to: session.
Session Referrer@session.referrerevent_attributestringReferrer URL that led to the session. Applies to: session.
Landing Page Path@session.initial_view.url_pathevent_attributestringPath of the first page viewed in the session. Applies to: session.
Exit Page Path@session.last_view.url_pathevent_attributestringPath of the last page viewed in the session. Applies to: session.
View ID@view.idevent_attributestringUnique identifier for the page view. Applies to: view, action.
View URL@view.urlevent_attributestringFull URL of the page. Applies to: view, action.
View URL Host@view.url_hostevent_attributestringHost portion of the view URL. Applies to: view, action.
View URL Path@view.url_pathevent_attributestringPath portion of the view URL. Applies to: view, action.
View URL Path Group@view.url_path_groupevent_attributestringParameterized path group for grouping similar pages. Applies to: view, action.
View Name@view.nameevent_attributestringUser-friendly name for the page/view. Applies to: view, action.
View Time Spent@view.time_spentevent_attributeint64Time spent on the page in nanoseconds. Applies to: view.
View Action Count@view.action.countevent_attributeint64Number of user actions on the page. Applies to: view.
View Error Count@view.error.countevent_attributeint64Number of errors on the page. Applies to: view.
View Frustration Count@view.frustration.countevent_attributeint64Number of frustration signals on the page. Applies to: view.
Action ID@action.idevent_attributestringUnique identifier for the user action. Applies to: action.
Action Type@action.typeevent_attributestringType of action (click, tap, scroll, custom). Applies to: action.
Action Name@action.nameevent_attributestringUser-friendly name for the action (e.g., 'Add to Cart', 'Submit Form'). Applies to: action.
Action Target@action.target.nameevent_attributestringName or identifier of the target element. Applies to: action.
Action Loading Time@action.loading_timeevent_attributeint64Time to complete the action in nanoseconds. Applies to: action.
Frustration Type@action.frustration.typeevent_attributestringType of frustration signal (dead_click, rage_click, error_click). Applies to: action.
User ID@usr.idevent_attributestringUnique identifier for the user. Applies to: all.
User Email@usr.emailevent_attributestringEmail address of the user. Applies to: all.
User Name@usr.nameevent_attributestringDisplay name of the user. Applies to: all.
Device Type@device.typeevent_attributestringType of device (desktop, mobile, tablet). Applies to: all.
Device Brand@device.brandevent_attributestringBrand of the device (e.g., Apple, Samsung). Applies to: all.
Device Model@device.modelevent_attributestringModel of the device. Applies to: all.
OS Name@os.nameevent_attributestringOperating system name (e.g., iOS, Android, Windows). Applies to: all.
OS Version@os.versionevent_attributestringOperating system version. Applies to: all.
Browser Name@browser.nameevent_attributestringBrowser name (e.g., Chrome, Safari, Firefox). Applies to: all.
Browser Version@browser.versionevent_attributestringBrowser version. Applies to: all.
Country@geo.countryevent_attributestringCountry name from geo IP lookup. Applies to: all.
Country ISO Code@geo.country_iso_codeevent_attributestringISO country code from geo IP lookup. Applies to: all.
City@geo.cityevent_attributestringCity name from geo IP lookup. Applies to: all.
Continent@geo.continentevent_attributestringContinent name from geo IP lookup. Applies to: all.
Region@geo.regionevent_attributestringRegion or state name from geo IP lookup. Applies to: all.
Page Referrer@view.referrerevent_attributestringReferrer URL for the page view. Applies to: view.
UTM Source@session.referrer_utm_sourceevent_attributestringUTM source parameter from the referrer. Applies to: session.
Event IDidcorestringA unique identifier for the event.
Discovery Timestampdiscovery_timestampcoreint64The time when Datadog first received the event (milliseconds since Unix epoch). May differ from timestamp if there was an ingestion delay.
Tiebreakertiebreakercoreint64A value used to establish deterministic ordering among events that share the same timestamp.
Ingest Sizeingest_size_in_bytescoreint64The size of the event payload in bytes at the time of ingestion, before any processing.
Random Drawrandom_drawcorefloat64A random value between 0.0 and 1.0 assigned at ingestion, useful for consistent sampling across queries.