Performance analytics tools

get_discovery_search_performance

Returns the KPI tiles for search-driven traffic only: revenue, revenue per visit, average order value, and conversion rate. These match the Search tab in the performance dashboard.

The KPIs are pre-calculated server-side rather than derived from raw counts. To compare channels, pair this tool with get_discovery_category_performance for category pages and get_discovery_daily_performance for sitewide totals.

Request parameters

NameTypeRequired?Description
daysintNoThe rolling window in days, either 7 or 30. Defaults to 30. The window ends yesterday.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[any]Two report payloads: raw metrics and pre-calculated KPIs.
errorstr | nullError message if the request failed.

The first payload (data[0]) holds the raw search metrics:

FieldDescription
visitorsUnique visitors from search.
visitsTotal search visits and sessions.
revenueTotal search-attributed revenue.
atc_conversionsAdd-to-cart conversions from search.

The second payload (data[1]) holds the pre-calculated KPIs:

FieldDescription
snap_atc_rpvRevenue per visitor.
snap_atc_aovAverage order value.
snap_atc_conversion_rateConversion rate, as a percentage.
snap_session_bounce_rateSession bounce rate, as a percentage.

get_discovery_category_performance

Returns the KPI tiles for category-page traffic only: revenue, revenue per visit, average order value, and conversion rate. These match the Categories tab in the performance dashboard.

The KPIs are pre-calculated server-side rather than derived from raw counts. To compare channels, pair this tool with get_discovery_search_performance for search traffic and get_discovery_daily_performance for sitewide totals.

Request parameters

NameTypeRequired?Description
daysintNoThe rolling window in days, either 7 or 30. Defaults to 30. The window ends yesterday.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
datalist[any]Two report payloads: raw metrics and pre-calculated KPIs.
errorstr | nullError message if the request failed.

The first payload (data[0]) holds the raw category metrics:

FieldDescription
visitorsUnique visitors from category pages.
visitsTotal category page visits and sessions.
revenueTotal category-attributed revenue.
atc_conversionsAdd-to-cart conversions from category pages.

The second payload (data[1]) holds the pre-calculated KPIs:

FieldDescription
snap_atc_rpvRevenue per visitor.
snap_atc_aovAverage order value.
snap_atc_conversion_rateConversion rate, as a percentage.
snap_session_bounce_rateSession bounce rate, as a percentage.

get_discovery_daily_performance

Returns sitewide revenue KPIs over a rolling day window: add-to-cart revenue and assisted revenue (snap_atc_revenue). Unlike the search and category tools, it uses a rolling window rather than a fixed date range.

Request parameters

NameTypeRequired?Description
daysintNoThe rolling window in days. Defaults to 30, so 30 means the last 30 days.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

get_discovery_top_queries

Returns the top search queries over a date range, ranked by browse session count and revenue. Use it to understand what shoppers search for most. Each query includes its browse session count (browse_session_query) and attributed revenue (snap_atc_revenue).

To contrast high-traffic queries that convert against those that don't, pair this tool with get_discovery_no_revenue_queries.

Request parameters

NameTypeRequired?Description
start_datestrYesThe start date in YYYY-MM-DD format, for example '2026-03-25'.
end_datestrYesThe end date in YYYY-MM-DD format, for example '2026-04-23'.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

get_discovery_no_revenue_queries

Returns search queries that drove sessions but generated zero revenue over a date range. These are searches where shoppers looked but didn't convert, so they're prime candidates for merchandising fixes such as ranking rule adjustments, synonyms, or redirects. Each query includes its browse session count (browse_session_query).

Pair this tool with get_discovery_top_queries to see both ends of the query spectrum.

Request parameters

NameTypeRequired?Description
start_datestrYesThe start date in YYYY-MM-DD format, for example '2026-03-25'.
end_datestrYesThe end date in YYYY-MM-DD format, for example '2026-04-23'.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

get_discovery_top_categories

Returns the top-performing categories over a date range, ranked by browse session count and revenue. Use it to see which category pages drive the most engagement and revenue. Each entry includes the category name and its attributed revenue (snap_atc_revenue).

To see both ends of the performance spectrum, pair this tool with get_discovery_lowest_cvr_categories.

Request parameters

NameTypeRequired?Description
start_datestrYesThe start date in YYYY-MM-DD format, for example '2026-03-25'.
end_datestrYesThe end date in YYYY-MM-DD format, for example '2026-04-23'.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

get_discovery_lowest_cvr_categories

Returns the categories with the lowest conversion rate over a rolling day window, ranked by conversion_after_rate in ascending order. Use it to find category pages that need merchandising attention, such as weak ranking rules, missing products, or thin content. Each entry includes the category name (heading) and its conversion rate (conversion_after_rate).

Request parameters

NameTypeRequired?Description
daysintNoThe rolling window in days. Defaults to 30, so 30 means the last 30 days.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

get_discovery_top_performing_products

Returns the top products by revenue over a rolling day window, each with an image URL and heading. Use it to see which products drive the most revenue and to spot candidates for promotional boosting. Each entry includes image_url, product, heading, and revenue.

To boost a top product in search results, use its product ID with the ranking rules tools.

Request parameters

NameTypeRequired?Description
daysintNoThe rolling window in days. Defaults to 30, so 30 means the last 30 days.
domain_keystr | nullNoThe domain key for a specific site, for example 'your_domain_com'. Omit for account level.
view_idstr | nullNoThe view ID for a specific site, for example '472'. Omit for account level.

Response parameters

The tool returns a CompassResponse object with the following parameters:

ParameterTypeDescription
successboolWhether the request succeeded.
dataany | nullThe report payload as freeform JSON.
errorstr | nullError message if the request failed.

© Bloomreach, Inc. All rights reserved.