Shopify Analytics
Own metric definitions, reconciliation, performance decomposition, diagnosis, and decision reporting across Shopify and connected marketing systems.
Operating contract
- Start read-only. Analysis does not authorize tracking, store, campaign, or reporting changes.
- Define every decision metric, population, period, timezone, currency, and data source before comparison.
- Keep collection defects, attribution differences, and real business-performance changes separate.
- Do not sum overlapping attributed revenue across platforms.
- Do not use “profit” without naming the profit level and included costs. Do not double-count discounts or refunds already included in net revenue.
- Correlation, a decomposition residual, or a coincident change does not establish causality.
Required inputs
Collect the decision, primary business outcome, source systems, schemas or exports, conversion definitions, attribution settings, timezone, currency, date range and comparison, filters, product and customer scope, revenue and cost definitions, known incidents, change history, data freshness, and authorization.
Workflow
- Create a metric contract and source map.
- Validate completeness, types, duplicates, nulls, timestamps, currencies, identities, event quality, and status treatment.
- Reconcile Shopify or the selected ledger with GA4 and channel reports under their own definitions.
- Decompose the outcome across traffic, conversion, average value, product mix, customer mix, returns, and costs as data allows.
- Segment only where it can change the decision and the evidence is sufficient.
- Rank explanations by evidence, test alternatives, and identify decision-changing unknowns.
- Recommend a measurement repair, business action, or controlled test with owner, guardrails, and verification.
Read references/reporting-framework.md for metric and report design. Read references/diagnosis-framework.md for root-cause analysis.
Worked example
Read references/worked-example.md for a complete synthetic case, supplied inputs, expected outcome, and acceptance checks. Treat its facts and thresholds as example-specific, not merchant evidence or default policy.
For top-selling-product requests, state whether the ranking uses net sales, net units, or a named contribution metric. Show a second ranking when it changes the answer. Do not invent product-level media allocation to label a revenue winner the most profitable.
Output contract
Provide the decision, metric contract, data-quality result, reconciliation, observed facts, calculations, decomposition, inference and alternatives, assumptions, unknowns, recommendation, guardrails, authorization, and verification. Report source-specific attributed outcomes separately from realized business outcomes.
1---2name: shopify-analytics3description: Analyzes Shopify performance, top-selling products, and profit changes. Reconciles store, GA4, ad, and email data for reporting and root-cause analysis.4license: MIT5---67# Shopify Analytics89Own metric definitions, reconciliation, performance decomposition, diagnosis, and decision reporting across Shopify and connected marketing systems.1011## Operating contract1213- Start read-only. Analysis does not authorize tracking, store, campaign, or reporting changes.14- Define every decision metric, population, period, timezone, currency, and data source before comparison.15- Keep collection defects, attribution differences, and real business-performance changes separate.16- Do not sum overlapping attributed revenue across platforms.17- Do not use “profit” without naming the profit level and included costs. Do not double-count discounts or refunds already included in net revenue.18- Correlation, a decomposition residual, or a coincident change does not establish causality.1920## Required inputs2122Collect the decision, primary business outcome, source systems, schemas or exports, conversion definitions, attribution settings, timezone, currency, date range and comparison, filters, product and customer scope, revenue and cost definitions, known incidents, change history, data freshness, and authorization.2324## Workflow25261. Create a metric contract and source map.272. Validate completeness, types, duplicates, nulls, timestamps, currencies, identities, event quality, and status treatment.283. Reconcile Shopify or the selected ledger with GA4 and channel reports under their own definitions.294. Decompose the outcome across traffic, conversion, average value, product mix, customer mix, returns, and costs as data allows.305. Segment only where it can change the decision and the evidence is sufficient.316. Rank explanations by evidence, test alternatives, and identify decision-changing unknowns.327. Recommend a measurement repair, business action, or controlled test with owner, guardrails, and verification.3334Read [references/reporting-framework.md](references/reporting-framework.md) for metric and report design. Read [references/diagnosis-framework.md](references/diagnosis-framework.md) for root-cause analysis.3536## Worked example3738Read [references/worked-example.md](references/worked-example.md) for a complete synthetic case, supplied inputs, expected outcome, and acceptance checks. Treat its facts and thresholds as example-specific, not merchant evidence or default policy.3940For top-selling-product requests, state whether the ranking uses net sales, net units, or a named contribution metric. Show a second ranking when it changes the answer. Do not invent product-level media allocation to label a revenue winner the most profitable.4142## Output contract4344Provide the decision, metric contract, data-quality result, reconciliation, observed facts, calculations, decomposition, inference and alternatives, assumptions, unknowns, recommendation, guardrails, authorization, and verification. Report source-specific attributed outcomes separately from realized business outcomes.