shopify_analytics_query
Retrieve account-bound Shopify analytics metrics like conversion rate and average order value for a specified UTC day range without writing custom ShopifyQL.
Instructions
Read one fixed, account-bound Shopify analytics observation. The host constructs server-owned ShopifyQL for the requested metric and exact UTC-day window; callers cannot submit arbitrary ShopifyQL.
Args:
target_metric (required): One of conversion_rate, storefront_conversion_rate, add_to_cart_rate, checkout_completion_rate, or average_order_value.
window_start (required): Inclusive canonical UTC-midnight instant, for example 2026-08-01T00:00:00Z.
window_end (required): Exclusive canonical UTC-midnight instant, 1-366 whole days after window_start.
currency: Required uppercase ISO currency only for average_order_value.
project_id: Authenticated Project UUID.
project_ref: Exact project correlation reference.
connector_account_ref: Project-bound connector account alias.
idempotency_key: Stable business-action identity.
effect: Required and must be read; Spring verifies it.
approval_ref: Approved platform task UUID when resuming a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| effect | Yes | ||
| currency | No | ||
| project_id | No | ||
| window_end | No | ||
| project_ref | No | ||
| approval_ref | No | ||
| window_start | No | ||
| target_metric | No | ||
| idempotency_key | No | ||
| connector_account_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |