Event diagnostics tools

get_pixel_health_status

Returns the health of a merchant's tracking pixels: which pixel types are healthy, which have issues, and the top issue categories for each failing type. Pageview pixels and event pixels are reported separately, each with an event count, issue count, issue rate, and top issues.

Start here when you investigate tracking problems. It shows which pixel type is broken and what the dominant issue is, for example url_invalid or missing_uid. Then call get_pixel_event_stream to drill into a failing type and inspect individual events. Use mode='live' for production traffic, or mode='debug' to validate a new integration before go-live.

Request parameters

NameTypeRequired?Description
account_namestrNoThe account name. Selected for you when you have exactly one account. Required in live mode with multiple accounts.
period_hoursintNoHow many hours back from now to query. Defaults to 8, up to 720 (30 days).
mode"live" | "debug"No'live' for production traffic, 'debug' for the test pixel endpoint. Defaults to 'live'.
site_group_idstr | int | nullNoThe site group ID or site name. Defaults to -1 (account level). Use list_discovery_sites to find sites.

Response parameters

The tool returns a PixelHealthStatusResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
account_namestrThe account or merchant name used in the query.
period_hoursintThe time window queried, in hours back from now.
page_view_pixelslist[PixelTypeSummary]Health status per pageview pixel type.
event_pixelslist[PixelTypeSummary]Health status per event pixel type.
errorstr | nullError message if the request failed.

The PixelTypeSummary object has the following fields:

FieldTypeDescription
display_typestrThe pixel type identifier.
event_countintTotal events fired by this pixel type in the window.
issue_countintEvents with at least one issue.
issue_rate_pctfloatThe percentage of events with issues, from 0 to 100.
top_issueslist[PixelIssueCount]Issue types ordered by frequency, populated when issue_count is above 0.

The PixelIssueCount object has the following fields:

FieldTypeDescription
status_keystrThe issue type key, for example 'url_invalid' or 'missing_uid'.
countintThe number of events with this issue in the window.

get_pixel_event_stream

Fetches a sample of pixel events with optional filters, then aggregates the device type and issue key distributions from the returned records. Use it to drill into a failing pixel type and see which devices and issue categories dominate, for example mostly mobile events flagged as url_invalid.

Call get_pixel_health_status first to find the failing display_types and status_keys, then pass them here to sample the raw events. All PII in the stream is masked server-side. The pixel_id field is safe to share and is the key you pass to get_pixel_event_details.

Request parameters

NameTypeRequired?Description
account_namestrNoThe account name. Selected for you when you have exactly one account.
display_typeslist[str]NoFilter to specific pixel types, for example ['product-pageview', 'search-event']. Omit for all types.
status_keyslist[str]NoFilter to events with specific issue keys, OR-combined. Omit to return all events, including healthy ones.
period_hoursintNoHow many hours back from now to query. Defaults to 8, up to 720 (30 days).
max_eventsintNoThe maximum events to return. Defaults to 50, capped at 100.
mode"live" | "debug"No'live' for production traffic, 'debug' for the test pixel endpoint. Defaults to 'live'.
site_group_idstr | int | nullNoThe site group ID or site name. Defaults to -1 (account level). Use list_discovery_sites to find sites.

Response parameters

The tool returns a PixelEventStreamResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
total_eventsintTotal matching events reported by the API.
returned_eventsintThe number of events included in this response.
device_summarydict[str, int]Event count per device type, derived from returned events.
issue_summarydict[str, int]Event count per issue key, derived from returned events.
eventslist[PixelEvent]The event records.
errorstr | nullError message if the request failed.

The PixelEvent object has the following fields:

FieldTypeDescription
timestampstrThe event timestamp in ISO 8601 format.
display_typestrThe pixel type that fired this event.
status_keyslist[str]Issue keys attached to this event.
device_typestr | nullThe device type, for example 'mobile' or 'desktop'.
domain_keystr | nullThe domain key where the event fired.
view_idstr | nullThe view ID for the site.
pixel_idstrThe unique pixel event ID.

get_pixel_event_details

Returns the full parameters and derived properties for a single pixel event, identified by the pixel_id and timestamp you get from get_pixel_event_stream. Both values must come from the same event record, and the mode must match the source, since live IDs can't be fetched in debug mode and vice versa.

The response has the raw query-string parameters the browser sent (pixel_params, such as url, cat_id, and prod_id) plus server-derived fields (derived_params, such as display type, issue keys, and device class). Use it to diagnose exactly why an event has a particular issue key, for example which URL was flagged as invalid. The cookie_uid and client_ip fields in derived_params are partially redacted by the upstream API.

Request parameters

NameTypeRequired?Description
pixel_idstrYesThe pixel event ID from get_pixel_event_stream, for example 'pixel-6-5701308944-1781681267062'.
timestampstrYesThe ISO 8601 event timestamp from get_pixel_event_stream, for example '2026-06-17T07:27:47.062Z'.
account_namestrNoThe account name. Selected for you when you have exactly one account.
mode"live" | "debug"No'live' for production events, 'debug' for test events. Must match the source of the pixel_id. Defaults to 'live'.
site_group_idstr | int | nullNoThe site group ID or site name. Defaults to -1 (account level). Use list_discovery_sites to find sites.

Response parameters

The tool returns a PixelEventDetailResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the event was found and parsed successfully.
pixel_idstrThe event's unique pixel ID.
pixel_paramsdictRaw pixel parameters sent by the browser. The keys vary by pixel type.
derived_paramsPixelDerivedParams | nullServer-derived properties: device class, issues, and masked IDs.
errorstr | nullError message if the request failed.

The PixelDerivedParams object has the following fields:

FieldTypeDescription
display_typestrThe pixel type, for example 'category-pageview'.
status_keyslist[str]Issue keys for this event, for example ['cat_required'].
cookie_uidstr | nullThe masked cookie UID for the visitor.
user_agentstr | nullThe full user-agent string.
device_typestr | nullA human-readable device description, for example 'Apple iPhone, iOS 18.7'.
device_classstr | nullThe broad device class, for example 'mobile' or 'desktop'.
client_ipstr | nullThe masked client IP address.
cdp_segmentsdictCDP segment membership for this visitor.
timestampstrThe ISO 8601 timestamp when the event was received.

© Bloomreach, Inc. All rights reserved.