Fetch Sitewide Analytics
Store-level analytics across all traffic, not tied to one experience: KPI snapshots, time series, order-value distribution, and the conversion funnel. Each endpoint takes a time window, optional filters, and optional audience segmentation in the request body.
Retrieve the sitewide conversion funnel as a Sankey graph: visitors flow from entry point → landing page → second page → cart → checkout → conversion. The step-1 entry-point nodes default to device type (Mobile / Desktop); set entryPoint to pivot step 1 on traffic source, visitor type, or source site instead. Top-5 bucketing per step plus catch-all Other / Bounced rollups happen server-side; the wire format is already aggregated.
POST /v25-10-beta/analytics/sitewide/conversion-funnel
Request
start
no
ISO 8601 datetime string
Beginning of the analysis window. Defaults to the start of the day 30 days ago, in the store's timezone. Unlike the other sitewide endpoints, this default is day-aligned, not week-aligned.
end
no
ISO 8601 datetime string
End of the analysis window. Defaults to now.
filters
no
filters object
Shared sitewide filters that narrow the underlying dataset — deviceType, visitorType, sourceSitesOrChannels, countryCodes, currencyCodes, onlyProductIds, landingPageFilters (preferred; landingPage is deprecated), landingPageTypes, etc. See the Filters Reference for the full list.
entryPoint
no
string enum
Pivots the funnel's step-1 entry-point dimension — it controls which buckets are rendered at step 1, not which sessions are included. One of "device_type", "visitor_type", "source_channel", "source_site". Unrecognized values silently default to "device_type". Renamed from audience (see note below). See "Entry point vs. filters" below.
conversionFunnel
no
conversionFunnel object
Funnel-specific filters. Stage flags + single landing/second page-type pins. See "Funnel-specific filters" below.
The conversionFunnel object
All funnel-specific filtering lives in a single optional conversionFunnel object. All fields are optional; combine any subset.
Stage flags (boolean) — narrow the funnel input to sessions that hit a behavioral stage:
addedToCart— sessions that added at least one item to cartstartedCheckout— sessions that started checkoutconverted— sessions that convertedbounced— sessions that bounced (no second page)abandonedCart— added to cart but did not convertabandonedCheckout— started checkout but did not convertexitedBeforeAtc— exited before adding to cartviewedCollectionPage— viewed a collection pageviewedProductPage— viewed a product detail page
Page-type pins (landing-page enum) — pin the funnel to a single journey:
landingPageType— restrict to sessions whose landing page was this typesecondPageType— restrict to sessions whose second page was this type
Supported page-type values: "PDP", "Collection", "Content", "Blog", "Homepage", "Search", "Cart", "Other".
Funnel-specific vs. shared filters
Two distinct layers of filtering, and they behave differently:
filters.landingPageTypes(plural, array, inside the sharedfiltersobject) — narrows the underlying dataset to sessions starting on any of the selected page types. Same as the other/sitewide/*endpoints.conversionFunnel.landingPageType/conversionFunnel.secondPageType(singular) — pin the funnel itself to a specific journey, so a caller can see how the PDP → 2nd-page-PDP path converted in isolation.conversionFunnelstage flags (addedToCart,converted, etc.) — narrow the input population to sessions that hit a specific behavioral stage. Equivalent to the clickable node filters in the Intelligems dashboard.
conversionFunnel reuses the same schema the Intelligems dashboard sends internally, so the external contract matches the dashboard's funnel filtering exactly.
Entry point vs. filters
entryPoint and the shared filters look related but do completely different things. The simplest way to keep them straight:
filterschange which sessions are included in the funnel.entryPointchanges which buckets are shown at step 1. They don't filter the same way — in fact,entryPointdoesn't filter at all.
Concrete contrast:
filters.deviceType: "mobile"→ the funnel is computed over only mobile sessions. Every step in the response reflects mobile-only counts. Desktop sessions are gone from the dataset entirely.entryPoint: "device_type"→ the full dataset (mobile + desktop) is funneled, but step 1 of the Sankey is split into"Mobile"and"Desktop"nodes so you can see how each device cohort flows down. Nothing is filtered out.
Two questions, two different answers:
"How does the funnel look for mobile traffic specifically?"
filters: { deviceType: "mobile" }
"How does the funnel split between Mobile and Desktop visitors at the entry point?"
entryPoint: "device_type"
"How does the funnel split by channel, restricted to mobile US traffic?"
both: entryPoint: "source_channel" + filters: …
They compose without conflict — entryPoint controls the rendering of step 1, filters controls what data feeds into the funnel in the first place.
Supported entryPoint values
entryPoint value
Step-1 nodes
"device_type"
"Mobile", "Desktop"
"visitor_type"
"New", "Returning"
"source_channel"
Channel buckets: "Paid Social", "Paid Search", "Direct", "Organic Search", "Email", "Affiliate", … with top-5 + "Other" rollup
"source_site"
Referrer display names ("Google", "Facebook", "Instagram", "Klaviyo", "TikTok", …) — not hostnames — with top-5 + "Other" rollup
Reserved step-1 node names
"Unknown"— emitted for anyentryPointwhen the session has no value for that dimension. It is a real bucket and counts toward the top-5 selection."Misc"— emitted only forsource_siteandsource_channel. Those two dimensions get the top-5 rollup, which reserves"Other"as the catch-all, so a session whose own taxonomy value is literallyOtheris renamed to"Misc"to keep the two distinct.device_typeandvisitor_typehave no rollup and therefore never produce"Misc"."Other"— the top-5 rollup catch-all onsource_siteandsource_channelonly. Not a value any session carries.
These four mirror the Customer Journey chart's audience selector exactly. The shared AnalyticsAudienceType enum also has country_code and landing_page_full_path values, but the funnel intentionally excludes those — they're not surfaced in the dashboard's funnel view, so the external API and MCP do not expose them either.
Fallback on unrecognized values
If entryPoint is set to any string outside the four supported values (e.g., "country_code", "channel", "new_vs_returning", a typo), the request does not 400 — the value silently falls back to "device_type" and a warning is logged server-side. This is deliberate so that LLM-driven callers that guess slightly-wrong dimension names still get a sensible funnel back instead of an opaque validation error.
When entryPoint is omitted entirely, the funnel uses its built-in default step-1 split (the same default the dashboard's Customer Journey chart starts on).
Renamed from audience
This parameter was named audience in earlier v25-10-beta builds. It was renamed to entryPoint to disambiguate it from the audience segmentation parameter on the /analytics/sitewide/snapshot and /analytics/sitewide/timeseries endpoints — on the funnel it pivots step-1 entry-point nodes, it does not segment KPIs. A legacy audience key sent to this endpoint is now ignored (the funnel falls back to its default step-1 split rather than erroring), so update existing integrations to send entryPoint.
Response
Abbreviated example (one path through all six steps). Note every node referenced by a link appears in nodes, and step numbers are contiguous — a real response has more nodes/links per step:
Every node a link references is present in nodes, steps run 1→6 with no gaps, and each link.step equals its source node's step. pct values are all fractions of the step-1 total (10,000 here).
nodes— one entry per labeled state at each step. Ordered by(step ascending, value descending).name— node label (e.g."Mobile","Landing: PDP","Bounced","Added to Cart").step— 1-indexed step position in the funnel.value— visitor count at this node.pct— share of step-1 visitors that reached this node, as a fraction in[0, 1](not a percent).
links— one entry per transition between adjacent step nodes. Ordered by(step ascending, value descending).source/target— node names on either end of the transition.step— step of the source node.value— visitor count traversing this link.
Server-side bucketing
At each step the server keeps the top 5 entries by traffic and rolls everything else into "Other". Two special node names are reserved:
"Bounced"— sessions that ended before reaching a second page."Landing: Other"/"2nd Page: Other"— catch-all buckets for low-volume landing or second-page types.
This is the same shape the Intelligems dashboard renders; there is no "unbucketed" mode.
Rate limits
Same rate limit as the other /analytics/sitewide/* endpoints. Aggregated, cacheable data — see the Rate Limiting Reference.
Rate Limit: 10 requests per 30s window, refilling 5 tokens every 30s.
Intelligems external API access token.
Start of analysis period as an ISO 8601 datetime string (e.g. '2025-01-01T00:00:00.000-05:00'). Defaults to the start of the day 30 days ago, in the store's timezone. Note the default differs per sitewide endpoint, so pass an explicit start if you need a specific window.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$End of analysis period as an ISO 8601 datetime string. Defaults to now.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Optional dimension that pivots the funnel's step-1 entry-point nodes. This does NOT filter the dataset — it only changes which buckets are rendered at step 1 (Mobile vs. Desktop, New vs. Returning, channel breakdown, source-site breakdown). To narrow the dataset to a single segment, use the filters object instead. Supported values: 'device_type' (Mobile vs Desktop), 'visitor_type' (New vs Returning), 'source_channel' (Paid Social, Paid Search, Direct, ...), 'source_site' (referrer host buckets). Any other value (typo, unsupported dimension, wrong type) silently falls back to 'device_type'. Mirrors the Customer Journey chart's audience selector in the Intelligems dashboard. NOTE: this parameter was named audience in earlier v25-10-beta builds (renamed to disambiguate it from the audience segmentation param on the snapshot/timeseries endpoints). A legacy audience key sent to this endpoint is now ignored — update integrations to entryPoint.
device_typePossible values: OK
Too Many Requests
curl --location 'https://api.intelligems.io/v25-10-beta/analytics/sitewide/conversion-funnel' \
--header 'content-type: application/json' \
--header 'intelligems-access-token: YOUR_API_KEY' \
--data '{}'{
"data": {
"nodes": [
{
"name": "Paid Search",
"step": 1,
"value": 10000,
"pct": 1
},
{
"name": "Landing Page",
"step": 2,
"value": 8500,
"pct": 0.85
},
{
"name": "Cart",
"step": 3,
"value": 3200,
"pct": 0.32
},
{
"name": "Checkout",
"step": 4,
"value": 1400,
"pct": 0.14
},
{
"name": "Converted",
"step": 5,
"value": 520,
"pct": 0.052
}
],
"links": [
{
"source": "Paid Search",
"target": "Landing Page",
"step": 1,
"value": 8500
},
{
"source": "Landing Page",
"target": "Cart",
"step": 2,
"value": 3200
},
{
"source": "Cart",
"target": "Checkout",
"step": 3,
"value": 1400
},
{
"source": "Checkout",
"target": "Converted",
"step": 4,
"value": 520
}
]
}
}Retrieve order value distribution data and unit mix breakdowns for a time window.
Parameters
start— optional ISO 8601 datetime string. Beginning of the analysis window. Defaults to the start of the week (Monday, store timezone) containing the date 12 weeks ago.end— optional ISO 8601 datetime string. End of the analysis window. Defaults to now (rounded to the cache interval).filters— optional shared sitewide filters object. See the Filters Reference.
The window is
start/end, notstartTs/endTs. Every/analytics/sitewide/*endpoint takes ISO 8601 datetime strings understartandend. The epoch-secondsstartTs/endTspair used by the experience endpoints (/analytics/resource/{experienceId},/analytics/experience/{experienceId}/timeseries,/analytics/experience/{experienceId}/export) is not accepted here: unknown fields are stripped rather than rejected, so a request sendingstartTs/endTsreturns200over this endpoint's default window — from the start of the week (Monday, store timezone) 12 weeks ago until now — instead of the range you asked for, and nothing in the response flags the substitution. The default differs per sitewide endpoint, so always pass an explicitstartwhen you need a specific window. Date-only strings and datetimes without an offset are rejected — send a full datetime withZor an offset ("2026-06-01T00:00:00Z", not"2026-06-01"or"2026-06-01T00:00:00").
Response
The response returns orderValueDistribution.kernel_density_estimate and orderValueDistribution.cumulative_distribution_function, plus orderBreakdown and currency.
Both distribution arrays hold one entry per sampled order-value point, each with x (the order value) and the two series current_period and previous_period. The two arrays share the same x grid, so they can be zipped by index.
orderBreakdown is an array of unit-mix rows. Each row carries dt (the start of its weekly bucket, in the store's timezone, formatted "YYYY-MM-DD HH:MM:SS"), a plain-number unit_quantity, plus n_orders, net_revenue, gross_profit, and the share metrics pct_orders_by_unit_quantity, pct_revenue_by_unit_quantity, and pct_profit_by_unit_quantity. Each metric is a { value } object.
Rows are per week, not per unit quantity. The unit mix is computed per weekly bucket, so the array holds one row per (
dt×unit_quantity), and the share metrics are shares within that week. The buckets cover both the requested window and the equally long comparison window immediately before it. Rows whosedtis beforestartbelong to the comparison window. Whenstartis not a Monday, the bucket containing it mixes both windows. To build a window-level breakdown, keep the rows inside your window and sumn_orders,net_revenue, andgross_profitperunit_quantity. Do not sum thepct_*values; recompute shares from the summed counts.
gross_profitandpct_profit_by_unit_quantityare not COGS-suppressed here. Every other analytics endpoint nulls profit metrics for a store with no COGS coverage, because the profit formula (net_revenue - total_cost) degenerates tonet_revenuewhentotal_cogsis0. This endpoint does not: the unit-mix rows carry nopct_revenue_with_cogscell, so there is no coverage signal to suppress on, andgross_profitcomes back as a raw revenue-shaped figure. Check COGS status withPOST /analytics/sitewide/snapshot(itscogs_configured/cogs_coverage_pct) before reporting either field from this endpoint, and ignore both whencogs_configuredisfalse.n_orders,net_revenue,pct_orders_by_unit_quantity,pct_revenue_by_unit_quantity, and the two distribution curves are unaffected.
This is the endpoint to use for an order-value distribution. The histogram, kde, and cdf fields on POST /analytics/resource/{experienceId} are always returned empty and are not populated there.
Rate Limit: 10 requests per 30s window, refilling 5 tokens every 30s.
Intelligems external API access token.
Start of analysis period as an ISO 8601 datetime string (e.g. '2025-01-01T00:00:00.000-05:00'). Defaults to the start of the week containing the date 12 weeks ago, in the store's timezone (weeks start Monday), so the default start is week-aligned rather than exactly 84 days back. Note the default differs per sitewide endpoint, so pass an explicit start if you need a specific window.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$End of analysis period as an ISO 8601 datetime string. Defaults to now.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$OK
Too Many Requests
curl --location 'https://api.intelligems.io/v25-10-beta/analytics/sitewide/order-distribution' \
--header 'content-type: application/json' \
--header 'intelligems-access-token: YOUR_API_KEY' \
--data '{
"start": "2025-01-01T00:00:00.000-05:00",
"end": "2025-01-31T23:59:59.000-05:00"
}'{
"currency": "USD",
"orderValueDistribution": {
"kernel_density_estimate": [
{
"x": 25,
"current_period": 0.0042,
"previous_period": 0.0038
},
{
"x": 50,
"current_period": 0.0121,
"previous_period": 0.0109
},
{
"x": 100,
"current_period": 0.0087,
"previous_period": 0.0093
}
],
"cumulative_distribution_function": [
{
"x": 25,
"current_period": 0.18,
"previous_period": 0.16
},
{
"x": 50,
"current_period": 0.54,
"previous_period": 0.5
},
{
"x": 100,
"current_period": 0.91,
"previous_period": 0.89
}
]
},
"orderBreakdown": [
{
"dt": "2025-01-06 00:00:00",
"unit_quantity": 1,
"n_orders": {
"value": 8420
},
"net_revenue": {
"value": 421000.5
},
"gross_profit": {
"value": 168400.2
},
"pct_orders_by_unit_quantity": {
"value": 0.68
},
"pct_revenue_by_unit_quantity": {
"value": 0.55
},
"pct_profit_by_unit_quantity": {
"value": 0.52
}
},
{
"dt": "2025-01-06 00:00:00",
"unit_quantity": 2,
"n_orders": {
"value": 3960
},
"net_revenue": {
"value": 344520.75
},
"gross_profit": {
"value": 155534.3
},
"pct_orders_by_unit_quantity": {
"value": 0.32
},
"pct_revenue_by_unit_quantity": {
"value": 0.45
},
"pct_profit_by_unit_quantity": {
"value": null
}
}
]
}Retrieve sitewide snapshot metrics for a time window.
Parameters
start— optional ISO 8601 datetime string. Beginning of the analysis window. Defaults to the start of the week (Monday, store timezone) containing the date one week ago — so the default window spans 7 to 13 days depending on the current weekday.end— optional ISO 8601 datetime string. End of the analysis window. Defaults to now (rounded to the cache interval). Period-over-periodpct_changeis computed against the equivalent window immediately precedingstart.feature— optional metric-set selector object. See below.filters— optional shared sitewide filters object. See the Filters Reference.
The window is
start/end, notstartTs/endTs. Every/analytics/sitewide/*endpoint takes ISO 8601 datetime strings understartandend. The epoch-secondsstartTs/endTspair used by the experience endpoints (/analytics/resource/{experienceId},/analytics/experience/{experienceId}/timeseries,/analytics/experience/{experienceId}/export) is not accepted here: unknown fields are stripped rather than rejected, so a request sendingstartTs/endTsreturns200over this endpoint's default window — from the start of the week (Monday, store timezone) one week ago until now — instead of the range you asked for, and nothing in the response flags the substitution. The default differs per sitewide endpoint, so always pass an explicitstartwhen you need a specific window. Date-only strings and datetimes without an offset are rejected — send a full datetime withZor an offset ("2026-06-01T00:00:00Z", not"2026-06-01"or"2026-06-01T00:00:00").
The optional feature parameter is an object, not a string enum. It selects which metric set is returned.
These sets belong to this endpoint. They are not the same as the sets on POST /analytics/sitewide/timeseries — the two endpoints compute different metrics, so a set with the same name returns different fields on each.
feature
Fields returned
{ "name": "performance" }
gross_profit_per_visitor, net_revenue_per_visitor, conversion_rate, aov, gross_margin_pct, gross_profit, net_revenue, n_orders, n_visitors, average_discount, pct_revenue_with_cogs
{ "name": "order" }
aov, n_visitors, n_orders, median_order_value, average_units_per_order, pct_orders_with_free_shipping, net_shipping_revenue_per_order
{ "name": "conversion" }
viewed_collection_page_rate, viewed_product_page_rate, add_to_cart_rate, checkout_begin_rate, conversion_rate, bounce_rate, abandoned_cart_rate, abandoned_checkout_rate
{ "name": "audience", "audience": "device_type" }
The full sitewide metric set, broken out per segment
Omitting feature entirely returns the full sitewide metric set in a single "All" segment.
median_order_value and average_discount are available only on this endpoint. Conversely, the timeseries endpoint returns per-session rates (sessions_per_visitor, conversion_rate_per_session, net_revenue_per_session, gross_profit_per_session) and cost_of_revenue, none of which are computed here.
Response Structure
The response is a JSON object keyed by segment name, not a flat object with top-level metric fields.
When no audience feature is specified (or feature.name is "performance", "order", or "conversion"), the response contains a single "All" key:
When feature.name is "audience", the response contains one key per audience segment plus a "__total" key:
A window with no data returns an empty object {} — not { "All": {} } and not a segment map with zeroed metrics. This applies to every feature, including audience (no "__total" key either). Check that the segment you want is present before reading metrics off it; response.All.n_visitors.value will throw on an empty window.
Each segment object contains currency (string), the COGS metadata fields cogs_configured (boolean) and cogs_coverage_pct (number), and metric fields. The two cogs_* fields are present for the performance, order, and audience features but omitted for conversion. Non-suppressed metric fields are objects whose value and pct_change cells are optional and nullable (number | null). pct_change represents the percent change versus the comparison period. In audience view, per-segment metrics can also include pct_impact_to_total_change (number | null).
An unavailable calculation is returned as null, including percent change when both current and comparison values are zero or when comparison data is missing. For example, pct_revenue_with_cogs can return { "value": 0, "pct_change": null } in a populated performance response. Null-check individual cells before using them; a present metric object does not guarantee numeric cells. This is separate from the whole-metric profit suppression described below.
impact_from_visitor_mix_shift appears on __total for ratio metrics only — within the audience field set that means conversion_rate, aov, net_revenue_per_visitor, and pct_revenue_with_cogs. (gross_margin_pct is a ratio but is not part of the audience field set, so it never carries this field.) Additive metrics (n_visitors, n_orders, net_revenue, gross_profit, and the rest of the counts and totals) never carry it, so expect it on a minority of the fields in a __total object rather than on all of them. It is the residual of the total percent change that is not attributable to any individual segment — the part explained by the mix of visitors shifting between segments — which is only meaningful for a weighted average, not for a sum.
Alongside currency, every segment also includes two scalar COGS-status fields (not { value, pct_change } objects): cogs_configured (boolean — whether cost-of-goods data is configured for the store) and cogs_coverage_pct (number, a fraction in [0, 1] for the share of revenue with COGS data).
COGS-dependent profit metrics are returned as a bare null (not a { value, pct_change } object) when cogs_configured is false. On this endpoint that is four fields:
gross_profitgross_profit_per_visitorgross_margin_pctoli_net_product_revenue_with_cogs
Clients must null-check all four before reading .value / .pct_change. Within this endpoint the suppression is applied to any profit metric, so the same rule holds for other profit fields (for example gross_profit_per_order, product_profit, subscription_gross_profit) on the feature sets that return them.
Suppression is per endpoint, not global. It is applied on this endpoint, on POST /analytics/sitewide/timeseries, and on the experience analytics endpoints (POST /analytics/resource/{experienceId} and POST /analytics/experience/{experienceId}/timeseries, which report the same condition as cogsConfigured / cogsCoveragePct). It is not applied to orderBreakdown on POST /analytics/sitewide/order-distribution — see that endpoint's note before using its profit fields.
Metric Availability by Feature
performancereturns this KPI subset:n_visitors,conversion_rate,n_orders,aov,net_revenue,gross_profit,gross_profit_per_visitor,net_revenue_per_visitor,gross_margin_pct,average_discount,pct_revenue_with_cogs.orderreturns this subset:aov,n_visitors,n_orders,median_order_value,average_units_per_order,pct_orders_with_free_shipping,net_shipping_revenue_per_order.conversionreturns this subset:viewed_collection_page_rate,viewed_product_page_rate,add_to_cart_rate,checkout_begin_rate,conversion_rate,bounce_rate,abandoned_cart_rate,abandoned_checkout_rate.audiencereturns per-segment metrics plus a__totalkey:n_sessions,n_visitors,n_orders,gross_revenue,net_revenue,order_cogs,conversion_rate,aov,net_revenue_per_visitor,shipping_cost,transaction_fees,tax,gross_profit,gross_profit_per_visitor,oli_net_product_revenue_with_cogs,oli_net_product_revenue,pct_revenue_with_cogs.
Rate Limit: 10 requests per 30s window, refilling 5 tokens every 30s.
Intelligems external API access token.
Start of analysis period as an ISO 8601 datetime string (e.g. '2025-01-01T00:00:00.000-05:00'). Defaults to the start of the week containing the date one week ago, in the store's timezone (weeks start Monday) — so the default window spans 7 to 13 days depending on the current weekday, not exactly 7. Note the default differs per sitewide endpoint, so pass an explicit start if you need a specific window.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$End of analysis period as an ISO 8601 datetime string. Defaults to now.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Optional feature selector object. Omit it or use { "name": "performance" } for sitewide KPI snapshots, { "name": "audience", "audience": "device_type" } for audience segment snapshots, { "name": "order" } for order-focused metrics, or { "name": "conversion" } for conversion funnel metrics.
OK
Too Many Requests
curl --location 'https://api.intelligems.io/v25-10-beta/analytics/sitewide/snapshot' \
--header 'content-type: application/json' \
--header 'intelligems-access-token: YOUR_API_KEY' \
--data '{
"start": "2025-01-01T00:00:00.000-05:00",
"end": "2025-01-31T23:59:59.000-05:00"
}'{
"All": {
"currency": "USD",
"cogs_configured": true,
"cogs_coverage_pct": 0.92,
"n_visitors": {
"value": 128450,
"pct_change": 0.084
},
"n_orders": {
"value": 4012,
"pct_change": 0.061
},
"net_revenue": {
"value": 386540.75,
"pct_change": 0.113
},
"conversion_rate": {
"value": 0.0312,
"pct_change": -0.021
},
"net_revenue_per_visitor": {
"value": 3.01,
"pct_change": 0.027
}
}
}Returns sitewide KPI time-series data with configurable granularity, a choice of metric set, and optional audience segmentation.
Parameters
start— optional ISO 8601 datetime string. Beginning of the analysis window. Defaults to the start of the week (Monday, store timezone) containing the date 12 weeks ago.end— optional ISO 8601 datetime string. End of the analysis window. Defaults to now (rounded to the cache interval).granularity— optional time bucketing:day,week(default), ormonthfeature— optional metric-set selector object. These sets belong to this endpoint. They are not the same as the sets onPOST /analytics/sitewide/snapshot— the two endpoints compute different metrics, so a set with the same name returns different fields on each. See "Metric sets" below.
The window is
start/end, notstartTs/endTs. Every/analytics/sitewide/*endpoint takes ISO 8601 datetime strings understartandend. The epoch-secondsstartTs/endTspair used by the experience endpoints (/analytics/resource/{experienceId},/analytics/experience/{experienceId}/timeseries,/analytics/experience/{experienceId}/export) is not accepted here: unknown fields are stripped rather than rejected, so a request sendingstartTs/endTsreturns200over this endpoint's default window — from the start of the week (Monday, store timezone) 12 weeks ago until now — instead of the range you asked for, and nothing in the response flags the substitution. The default differs per sitewide endpoint, so always pass an explicitstartwhen you need a specific window. Date-only strings and datetimes without an offset are rejected — send a full datetime withZor an offset ("2026-06-01T00:00:00Z", not"2026-06-01"or"2026-06-01T00:00:00").
Response envelope
Segments are nested under a top-level segments key, alongside currency and the resolved granularity. This differs from POST /analytics/sitewide/snapshot, where segment names are themselves the top-level keys:
{
"currency": "USD",
"granularity": "week",
"segments": {
"All": {
"data": [{ "dt": "2026-06-01T00:00:00", "n_orders": 142 }],
"summary": { "n_orders": 181.75 }
}
}
}Metric sets
Omit feature to receive every metric this endpoint produces. Pass one of the following to receive only that set:
feature
Segment keys
Fields returned (in addition to dt)
{ "name": "performance" }
"All"
n_visitors, n_orders, conversion_rate, aov, net_revenue, net_revenue_per_visitor, gross_profit, gross_profit_per_visitor, gross_margin_pct, pct_revenue_with_cogs
{ "name": "order" }
"All"
n_orders, aov, aov_pre_discount, units_per_order, net_revenue_per_unit, gross_revenue_per_unit, discount_per_unit, pct_orders_with_free_shipping, net_shipping_revenue_per_order
{ "name": "conversion" }
"All"
Funnel step rates — viewed_collection_page_rate, viewed_product_page_rate, add_to_cart_rate, checkout_begin_rate, conversion_rate, bounce_rate, abandoned_cart_rate, abandoned_checkout_rate — plus the four counts those rates are derived from: n_sessions, n_visitors, n_visitors_abandoned_cart, n_visitors_abandoned_checkout (12 fields in total)
{ "name": "audience", "audience": "device_type" }
one key per segment
The full per-segment metric set for the chosen dimension
The endpoint produces 37 metrics in total; performance and order between them cover 17. The remaining 20 are returned only when feature is omitted:
n_sessions, sessions_per_visitor, conversion_rate_per_session, net_revenue_per_session, gross_profit_per_session, gross_revenue, net_product_revenue, net_shipping_revenue, order_cogs, oli_net_product_revenue, oli_net_product_revenue_with_cogs, unit_quantity, lost_orders, lost_net_revenue, n_free_shipping_orders, discounts, shipping_cost, transaction_fees, tax, cost_of_revenue
Several of those — the per-session rates and cost_of_revenue — cannot be produced by the snapshot endpoint at all. Conversely, median_order_value and average_discount are available only on the snapshot endpoint and are never returned here.
conversion and audience are served by dedicated datasets, so their field sets are fixed by those datasets rather than filtered from the general metric set.
dt Field Format
dt is returned as a formatted date string (not Unix epoch). Format is "YYYY-MM-DDTHH:mm:ss" for all granularities (day, week, and month).
Response Notes
Each data point contains
dtplus the numeric fields for the selected metric set.Fields are
nullrather than0when a bucket has no data to compute them from (for exampleconversion_ratein a bucket with no visitors).summaryanddatado not share a key set, and how far they diverge depends on the metric set. Compare keys rather than assuming a fixed relationship:no
feature—datahas 37 fields,summaryhas 36.sessions_per_visitorappears on each data point but is not summarized.performance,order— identical key sets (10 and 9 fields respectively).conversion—datahas 12 fields butsummarycarries onlyn_sessionsandn_visitors. The eight funnel rates and the two abandonment counts are not summarized; recompute a window-level rate from the counts, or read it fromPOST /analytics/sitewide/snapshot.audience— one segment per dimension value, each with its owndata/summary. There is no__totalsegment here (unlikePOST /analytics/sitewide/snapshot), and data points additionally carryaudienceplus the within-bucket sharespct_visitors_by_audience,pct_orders_by_audience,pct_net_revenue_by_audience, andpct_gross_profit_by_audience.
Profit metrics are nulled when the store has no COGS coverage.
pct_revenue_with_cogsis returned alongside the profit metrics on bothdatapoints andsummary; when it is0,gross_profit,gross_profit_per_visitor,gross_margin_pct, andoli_net_product_revenue_with_cogscome back asnullrather than as revenue-minus-zero-cost figures. Suppression is evaluated per bucket and independently forsummary, so a window can mix suppressed and unsuppressed buckets. Partial coverage (0 < pct_revenue_with_cogs < 1) keeps the values — they are blended, and the coverage figure is how you tell.
summary is not a window total
Each segment can include a summary object alongside data, but it is not the sum over the requested window, and the two kinds of metric behave differently:
Additive metrics —
n_sessions,n_orders,gross_revenue,net_product_revenue,net_shipping_revenue,n_free_shipping_orders,net_revenue,order_cogs,oli_net_product_revenue_with_cogs,oli_net_product_revenue,unit_quantity,lost_orders,lost_net_revenue,discounts,shipping_cost,transaction_fees,tax,cost_of_revenue,gross_profit— are the window sum rescaled to onegranularitybucket, i.e. an average per bucket. The same window therefore returns different values atday,week, andmonth, and counts come back fractional. Summing thedataarray recovers the true window total for these.Ratio metrics —
conversion_rate,conversion_rate_per_session,aov,aov_pre_discount,net_revenue_per_visitor,net_revenue_per_session,gross_profit_per_visitor,gross_profit_per_session,units_per_order,gross_revenue_per_unit,net_revenue_per_unit,discount_per_unit,gross_margin_pct,pct_orders_with_free_shipping,net_shipping_revenue_per_order,pct_revenue_with_cogs— are computed from the window sums rather than from the rescaled per-bucket values. Ratios whose denominator is not visitor-based (aov,gross_margin_pct,pct_revenue_with_cogs, …) are exact window-wide figures and do not vary withgranularity. Visitor-denominated ratios currently do vary — see the warning below.n_visitorsis not additive. It is a distinct-visitor count, so a visitor active on several days is counted once per bucket they appear in. Summingdata[].n_visitorsovercounts, and the overcount grows as buckets get smaller.summary.n_visitorsis rescaled like the additive metrics, so it is not a window total either. For a true unique-visitor count over a window, usePOST /analytics/sitewide/snapshot.
To get a window total for an additive metric, sum the data array yourself. This does not work for n_visitors.
Example — one request window whose true totals are 727 orders and 138,938 unique visitors, requested as start 2026-06-01T00:00:00.000Z / end 2026-06-29T00:00:00.000Z. The window is closed and historical, so these figures reproduce exactly on re-run. They are sensitive to the end time of day, though: as with the bucket rounding on the other endpoints, an end of 2026-06-29T23:59:59Z rolls into one more day bucket and the same window returns 756 orders and 165,397 summed visitors instead. Align end to a day boundary to reproduce the table. The relationships it teaches — sum(data[]) constant across granularities, summary scaling by bucket_days / window_days, visitor sums shrinking toward the true count as buckets widen — hold either way:
granularity
summary.n_orders
sum(data[].n_orders)
sum(data[].n_visitors)
summary.conversion_rate
day
25.96
727
158,528 (+14.1%)
0.0045859
week
181.75
727
146,665 (+5.6%)
0.0049569
month
791.91
727
138,938 (exact)
0.0052325
The additive scale factor is bucket_days / window_days (1, 7, and 30.5 respectively), which is why month on a 28-day window exceeds the true total.
Known issue — visitor-denominated summary ratios vary with
granularity.summary.conversion_rate,summary.net_revenue_per_visitor, andsummary.gross_profit_per_visitorare computed asnumerator / sum(data[].n_visitors). Because that denominator double-counts returning visitors, these three are understated atdayandweekgranularity and only correct when the window fits in a single bucket. In the example above the true conversion rate is0.0052325(confirmed against/analytics/sitewide/snapshotfor the same window), butdayreports0.0045859— a 12.3% understatement. Until this is fixed, read these three fromPOST /analytics/sitewide/snapshot, or compute them yourself fromsum(data[].n_orders)and the snapshot'sn_visitors. Ratios with non-visitor denominators are unaffected.
Rate Limit: 10 requests per 30s window, refilling 5 tokens every 30s.
Intelligems external API access token.
Start of analysis period as an ISO 8601 datetime string (e.g. '2025-01-01T00:00:00.000-05:00'). Defaults to the start of the week containing the date 12 weeks ago, in the store's timezone (weeks start Monday), so the default start is week-aligned rather than exactly 84 days back. Note the default differs per sitewide endpoint, so pass an explicit start if you need a specific window.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$End of analysis period as an ISO 8601 datetime string. Defaults to now.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Optional metric-set selector. Object form, e.g. { "name": "performance" }. Values: 'performance' (headline KPI trend), 'order' (order composition and per-unit economics), 'conversion' (funnel step rates), or { name: 'audience', audience: '' } for a per-segment breakdown. Omit to receive every metric this endpoint produces. NOTE: the fields behind each set are specific to this endpoint and differ from the sitewide snapshot endpoint's set of the same name, because the two run different underlying datasets.
Time bucket granularity. Supported values: day, week, month. Defaults to week.
weekPossible values: OK
Too Many Requests
curl --location 'https://api.intelligems.io/v25-10-beta/analytics/sitewide/timeseries' \
--header 'content-type: application/json' \
--header 'intelligems-access-token: YOUR_API_KEY' \
--data '{
"start": "2025-01-01T00:00:00.000-05:00",
"end": "2025-01-31T23:59:59.000-05:00",
"granularity": "day"
}'{
"currency": "USD",
"granularity": "week",
"segments": {
"All": {
"data": [
{
"dt": "2025-01-01T00:00:00",
"n_visitors": 18240,
"conversion_rate": 0.0312,
"net_revenue": 104235.5
},
{
"dt": "2025-01-08T00:00:00",
"n_visitors": 19510,
"conversion_rate": 0.0338,
"net_revenue": 118904.25
}
],
"summary": {
"n_visitors": 37750,
"conversion_rate": 0.0326,
"net_revenue": 223139.75
}
}
}
}Last updated
Was this helpful?