---
title: "How Shopify Built An In-Context Analytics Experience"
description: "Shopify embedded order and fulfillment metrics directly into the admin Orders page instead of keeping them in a separate Analytics section, after research showed merchants bouncing between pages to make decisions."
url: "https://swe.quest/articles/how-shopify-built-an-in-context-analytics-experience-bced6498ed610bad"
canonical: "https://shopify.engineering/shopify-in-context-analytics"
source: "Shopify Engineering"
published: "2021-05-25"
difficulty: "medium"
kind: "Case study"
reading_minutes: 14
tags: ["analytics","data-pipelines","product-engineering","stream-processing","ecommerce"]
---

# How Shopify Built An In-Context Analytics Experience

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-05-25, 14 min read, Case study. Original: [https://shopify.engineering/shopify-in-context-analytics](https://shopify.engineering/shopify-in-context-analytics)

## Summary

Shopify embedded order and fulfillment metrics directly into the admin Orders page instead of keeping them in a separate Analytics section, after research showed merchants bouncing between pages to make decisions. The data science team validated candidate metrics against merchant workflows, segmented merchants to study the shape of each metric (hiding metrics that are inapplicable, constant, or only useful over long periods), and prototyped visualizations with real data. One result was choosing histograms over medians for fulfillment and delivery times. A shared data specification sheet kept Web, Android and iOS on the same queries. The underlying model uses an atomic grain of one row per fulfillment, in-transit or delivery event, and was built batch-first, then combined with streaming in a lambda architecture so batch supplies history and streaming covers recent data.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Product engineering](https://swe.quest/tags/product-engineering.md) (Engineering organization)
- [Stream processing](https://swe.quest/tags/stream-processing.md) (Data & databases)
- [E-commerce](https://swe.quest/tags/ecommerce.md) (Domains)

## Prerequisites

- dimensional data modeling
- batch vs streaming pipelines ([easy posts on Stream processing](https://swe.quest/tags/stream-processing.md?difficulty=easy))

## Keywords

Shopify, lambda architecture, Shopify admin

## Related posts

- [Introducing ShopifyQL: Our New Commerce Data Querying Language](https://swe.quest/articles/introducing-shopifyql-our-new-commerce-data-querying-language-ffb625f9afa12468.md): Shopify Engineering · 2022-06-22 · Easy · 11 min read · Analytics & OLAP, Language design, SQL, E-commerce
  ShopifyQL is a commerce-focused query language for Shopify Plus merchants that reorders SQL-like syntax (FROM before SHOW, BY instead of GROUP BY) and adds VISUALIZE for direct charting, COMPARE TO for period-over-period analysis without joins or window functions, and DURING for named commerce date ranges like BFCM.
- [ShopifyQL Notebooks: Simplifying Querying with Commerce Data Models](https://swe.quest/articles/shopifyql-notebooks-simplifying-querying-with-commerce-data-models-518ab97f2ab79e6a.md): Shopify Engineering · 2023-02-14 · Medium · 11 min read · Analytics & OLAP, Data pipelines, E-commerce, Performance engineering
  Shopify built commerce data models behind ShopifyQL Notebooks so merchants can query metrics like sales and view-to-purchase conversion without SQL or joining across departmental datasets.
- [Building a Real-time Buyer Signal Data Pipeline for Shopify Inbox](https://swe.quest/articles/building-a-real-time-buyer-signal-data-pipeline-for-shopify-inbox-35ea4cdd28145f71.md): Shopify Engineering · 2021-12-13 · Medium · 12 min read · Stream processing, Data pipelines, Event-driven architecture, E-commerce
  Shopify built a streaming pipeline on Apache Beam and Google Cloud Dataflow that surfaces cart actions and order completions to merchants inside Shopify Inbox conversations.
- [From batch processing to streaming: AMP’s data journey from open-source to ClickHouse Cloud](https://swe.quest/articles/from-batch-processing-to-streaming-amp-s-data-journey-from-open-source-to-2056cdf52d7c0f11.md): ClickHouse · 2025-01-20 · Medium · 5 min read · Analytics & OLAP, Data pipelines, Stream processing, E-commerce
  AMP, a Shopify analytics platform, replaced a brittle twice-daily Postgres-to-ClickHouse batch sync, which routinely left data 30 to 72 hours stale and needed a 1.2 TB RAM server, with a streaming pipeline into ClickHouse Cloud.
- [Shopify powers observability for global-scale commerce with ClickHouse](https://swe.quest/articles/shopify-powers-observability-for-global-scale-commerce-with-clickhouse-36dcf526b053ca23.md): ClickHouse · 2026-08-20 · Medium · 8 min read · Observability, Analytics & OLAP, Scaling, Cost optimization, Multi-tenancy
  Shopify consolidated metrics, logs, traces, exceptions and profiles from multiple vendors onto Observe, an internal observability platform built on self-hosted ClickHouse, and saw a 16x query improvement out of the box (over 30x at peak) along with predictable costs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
