---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# Build your own Triple Whale alternative with Claude Code: a step-by-step tutorial

> Build store analytics you own on Shopify orders with Claude Code and SegmentStream: net sales, ROAS, MER, new-customer CAC, LTV cohorts and every order's path, in reports and an analyst your team asks in the app or in Slack. Step by step, from one tested walkthrough.

- Result: Store analytics in your own workspace: net sales, ROAS, MER, new-customer CAC, lifetime value by cohort and every order's path, in reports your team signs in to and an analyst it can ask in the app or in its chat.
- Time: An afternoon, most of it your agent working
- You need: SegmentStream access; A Shopify store, and permission to create an app in it and edit its theme; A coding agent such as Claude Code, Codex or Cursor; The SegmentStream CLI, which your agent installs
- Walked through end to end on 2026-11-25; updated 2026-11-25.
- Steps: 1. Get access and create your organization 2. Have your agent create a workspace 3. Tell the agent what to build 4. Answer the agent's questions 5. Approve the plan 6. Let the agent build and test it 7. Deploy the workspace 8. Put the tracker on your storefront 9. Look inside what your agent built 10. Connect Shopify, Google Ads and Meta 11. Open your reports and make them yours 12. Ask your analyst, in the app or in your team's chat

If your store runs on Shopify and you build with a coding agent such as Claude Code or Codex, you can have store analytics of your own in an afternoon: net sales, ROAS, MER, new-customer CAC, lifetime value by cohort and the path of channels behind every order, in reports your team signs in to. Give the agent a SegmentStream workspace and the open marketing analytics blueprint. It asks how your store works, then builds everything in your workspace's repository and deploys it with the SegmentStream CLI. You answer its questions, approve its plan, and connect Shopify and your ad accounts yourself.

If you are moving off Triple Whale, these are the numbers you already check every morning. The difference is where they come from: every order sits in your own warehouse, every number is defined once in code you can read, and when you want a new report or a different definition, you ask your agent instead of waiting for someone else to build it.

Every prompt, question and screen on this page comes from one walkthrough we did end to end on a test workspace for an online coffee shop. Its orders and ad costs are invented sample data, loaded by the agent and marked as sample everywhere they appear; the reports switch to yours when you connect your store and ad accounts.

## Step 1: Get access and create your organization

SegmentStream access is by invitation today. Request access on segmentstream.com, then accept the invitation and create your account with Google or an email address.

![The SegmentStream sign-up page, with Continue with Google and Use email](https://segmentstream.com/guides/build-your-own-triple-whale/sign-up.webp)

The console then asks for your organization's name and country. The organization holds your team, who may see what, and every workspace you create.

## Step 2: Have your agent create a workspace

A workspace is your company's own software in one git repository: the event stream your storefront sends visits to, the warehouse, the connections to Shopify and your ad platforms, the pipelines that build the numbers, the definitions of those numbers, and the app your team opens. In the console, copy the setup prompt and paste it into your agent:

Prompt to paste into your coding agent:

```text
Read and follow https://segmentstream.com/agent-onboarding/SKILL.md
```

The agent installs the SegmentStream CLI, shows you a sign-in link to approve in your browser, and asks for the workspace's name, its app address, its region (Europe or the United States, which cannot be changed later) and a folder for the code. Then it creates the workspace and links the folder to it:

```
$ segmentstream init store-analytics
$ segmentstream workspace create store-analytics --region eu --subdomain acme-analytics
$ segmentstream link store-analytics --workspace <workspace-id>
The workspace's Git repository is now origin.
```

![A new workspace in the SegmentStream console, with nothing deployed yet and a prompt to connect a coding agent](https://segmentstream.com/guides/build-your-own-triple-whale/console-new-workspace.webp)

*A new workspace. The prompt on it connects your agent from any other computer you work on.*

Check before you go on:

- In the console, the workspace opens and says nothing is deployed yet.
- The agent reports the workspace's name, region and the folder it is linked to.

## Step 3: Tell the agent what to build

Paste the blueprint prompt, with the numbers you want and one line about your store:

Prompt to paste into your coding agent:

```text
Read https://github.com/segmentstream/build-your-own/blob/main/AGENTS.md and follow it.
Build our store analytics from the marketing-analytics blueprint: revenue, orders, ad spend, ROAS and MER, new-customer CAC, new vs returning customers, LTV by first-order month, each order with the visits behind it, and our best-selling products.
Our store runs on Shopify. Declare the Shopify connection, but don't authorize it: I'll connect the store in SegmentStream myself. Until then, use sample orders and sample ad spend.
```

The [marketing analytics blueprint](https://segmentstream.com/blueprints/marketing-analytics) is an open design for web and marketing analytics: a first-party tracker, sessions, ad costs, conversions and attribution, with the rules every version has to keep. Its online-store path adds orders, revenue and ROAS on top of the same visits and costs. The agent reads it, and your workspace, before it asks anything.

## Step 4: Answer the agent's questions

The agent asked its questions in one message, in plain words, with a suggested answer for each. Ours asked twelve. These need a decision from you:

| Question                           | Why it matters                                                          | Example answer                                                   |
| ---------------------------------- | ----------------------------------------------------------------------- | ---------------------------------------------------------------- |
| What counts as revenue             | ROAS, MER and lifetime value are all built on it                        | Net sales: after discounts and refunds, without shipping and VAT |
| Which orders count                 | Test, cancelled, point-of-sale and wholesale orders change the totals   | Online orders only; cancelled ones count zero                    |
| Who sees revenue and customers     | Orders are tied to customers and visitors, which count as personal data | Only the owner for now                                           |
| How an order is tied to its visits | Without it, an order counts in revenue but gives no channel credit      | The visitor ID on the cart, else the customer's hashed email     |
| Your store's address               | The connection reads one store                                          | Its permanent `your-store.myshopify.com` handle                  |

For the rest, the suggestions are usually right: a new customer is a first order over the whole store history, CAC is all ad spend over new customers, credit over 90 days with last click shown first, lifetime value as net sales per customer month by month after the first order, and best sellers ranked by net sales. A whole reply can be this short:

Prompt to paste into your coding agent:

```text
1. Net sales, as you suggest.
2. Online orders only. Cancelled orders count zero.
3. Only me for now.
4. Your suggestion: the visitor ID from the order when it is there, otherwise the hashed email. Also write the snippet for our Shopify theme that puts the visitor ID on the cart; I'll add it to the theme myself.
5. The store is our-store.myshopify.com. Scopes as you suggest.
6. Defaults for everything else.
7. Yes, sample data until I connect: orders with discounts, refunds, a few cancellations and repeat buyers, and spend for a handful of Google Ads and Meta campaigns.
```

The agent never asks for passwords or keys in the chat. Shopify and your ad accounts are connected in SegmentStream, by you.

## Step 5: Approve the plan

Before writing code, the agent wrote a one-page plan and waited. In short:

- **Connections:** Shopify, read-only, with read access to orders, all past orders, products and customers; Google Ads and Meta for spend. Declared, not authorized.
- **Pipelines:** one order table, filled by sample orders now and by Shopify later, keeping the order number, a pseudonymous customer key, line items, discounts, refunds, shipping and VAT, and never names, emails, phone numbers or addresses; from it, net sales per order, new and returning customers, sales per product and variant, and lifetime value by first-order month; a purchase conversion per order with first-click and last-click credit over 90 days.
- **Numbers, defined once:** net sales, orders, average order value, ROAS and cost per order under each model, MER, new-customer CAC blended and per channel, lifetime value and best sellers.
- **Reports in the workspace app:** Store, Orders with each order's path, Customers with the lifetime-value grid, Products, and orders added to Campaigns, Overview and Data quality.
- **The workspace assistant** learns the new numbers, so it can answer questions about them.
- **A snippet for your Shopify theme**, which you add yourself.
- **Left out, in our case:** profit and product costs, point-of-sale sales, and sending purchases back to Google or Meta.

It also said what needs a person: your accountant should confirm the net-sales definition, and whoever advises you on privacy should check putting a visitor ID on the cart. We approved:

Prompt to paste into your coding agent:

```text
Go ahead. Build it, run the checks, and show me what you'll deploy before you deploy anything.
```

## Step 6: Let the agent build and test it

In our walkthrough the agent worked for about half an hour on its own. It wrote the connection, the pipelines, the numbers, the reports, the assistant's knowledge of the new numbers and the theme snippet, all in the workspace's repository. Every rule in the plan became an automatic test: an order counts once, refunds lower net sales, test orders are left out, cancelled orders count zero, new and returning are right, lifetime value adds up, no raw email is stored, and no sample row survives once Shopify is on.

Check before you go on:

- The agent reports every check passing and names any rule it could not test.
- The work is committed in the workspace's repository; nothing is deployed yet.
- `BLUEPRINTS.md` in the workspace lists every place the build differs from the blueprint, with the reason.

## Step 7: Deploy the workspace

The agent listed what would go live and waited for a yes. Then it deployed:

```
$ segmentstream deploy
Ready: https://acme-analytics.segmentstream.app
Took 4m18s

Connections needing setup:
  google_ads  Authorization required
  meta_ads    Authorization required
  shopify     Configuration required — missing client_id, client_secret
```

To check its work before your own data arrives, the agent loaded the sample: about 300 orders a month back to May, from a few dozen products and a mix of new and repeat buyers, and daily spend for eight campaigns, four on Google Ads and four on Meta, from brand search to lookalike prospecting. Then it ran the pipelines. In the console, the workspace now shows the live app, the pipelines on their schedules, and the three connections that wait for you.

![The workspace overview after the deploy, with healthy pipeline schedules, and Google Ads, Meta Ads and Shopify waiting for authorization](https://segmentstream.com/guides/build-your-own-triple-whale/console-deployed-overview.webp)

*After the deploy: the reports refresh on schedule, and Google Ads, Meta and Shopify wait for you.*

Check before you go on:

- Overview shows the production deployment as **Ready**.
- Pipelines show the reports refreshing on schedule.
- Connections show Shopify, Google Ads and Meta waiting: that step is yours.

## Step 8: Put the tracker on your storefront

Revenue comes from Shopify; the visits behind each order come from your storefront. The agent wrote a small snippet for your Shopify theme, with instructions, and does not deploy it: you add it to the theme yourself. The snippet our agent wrote does three things, and only after a visitor allows analytics in Shopify's own cookie banner: it keeps a random visitor ID in a first-party cookie, records page views with the SegmentStream tracker, and puts the same ID on the cart, so the order that follows carries it. The browser holds no key.

Two things to settle before it sends anything that is kept. The workspace's event stream accepts visits only from addresses it knows, so ask the agent to add your storefront's address. And Shopify's cookie banner must be on, so visitors are asked first. Our walkthrough ran without a live store, so this is the one step we did not see work end to end; the checks below are how you confirm it on yours.

Check before you go on:

- Turn on Shopify's cookie banner and add the snippet as the agent's instructions say.
- Ask the agent to add your storefront's address to the event stream and deploy.
- Accept analytics on your storefront, add a product to the cart and place a test order: the order's additional details show the visitor ID. Test orders never reach the reports.

An order without the ID still counts in net sales, MER and new customers; it is tied to its visits by the customer's hashed email when they left one before, or not at all. Data quality shows how many orders each way covers.

## Step 9: Look inside what your agent built

Before you connect anything, open the workspace in the console. Everything the agent built is there to inspect, block by block, and nothing in it is hidden from you: the **connections** that bring in orders and spend, the **warehouse** where every row lands, the **pipelines** that turn rows into orders, sessions, attribution and cohorts, and the **ontology**, where every number your team reads is defined once. Two more blocks sit beside them: the **event stream** your storefront sends visits to, and a **destination**, which sends data back out to ad platforms when you ask the agent for one.

### Connections: how orders and spend get in

Connections lists every outside system the workspace talks to. The agent declared them in code; the console shows what is declared and whether it is authorized. Ours has Shopify, Google Ads and Meta for orders and spend, and Telegram, Slack and WhatsApp for the analyst in step 12.

![The Connections page listing Google Ads, Meta Ads, Shopify, Telegram, Slack and WhatsApp waiting for authorization, and public lists of AI crawler addresses already connected](https://segmentstream.com/guides/build-your-own-triple-whale/console-connections.webp)

*Shopify and the ad accounts bring data in; Telegram, Slack and WhatsApp are where the analyst can answer. All wait for you.*

Open Shopify and the page shows exactly what the connection may read, and the ways you can authorize it. The scopes are read-only: orders, all past orders, products and customers. This connection can only read your store.

![The Shopify connection page with its authorization methods and its read-only scopes for orders, all orders, products and customers](https://segmentstream.com/guides/build-your-own-triple-whale/console-shopify-connection.webp)

### The warehouse: every order as a row

The table map shows the whole chain the agent built, from raw data at the top to report tables at the bottom: visits and crawler lists, then identity, ad costs, orders and conversions, attribution, and the tables the reports read. A green dot marks each step whose checks passed on the last run.

![The table map in the SegmentStream console, with references and web events flowing through identity, costs, orders and conversions into attribution and reports, every step with passed checks](https://segmentstream.com/guides/build-your-own-triple-whale/console-table-map.webp)

*The table map: raw data at the top, report tables at the bottom, a green dot where every check passed.*

Open any table to see its columns and the pipeline that builds it. This is the order table the reports read: one row per order, with its customer key, whether it was the customer's first, its first-order month for cohorts, its net sales and the visits it was tied to. It is yours to join with anything else you keep, such as product costs or a subscription system.

![The order_report table in the gold dataset, with columns such as order_id, order_date, cancelled, status, customer_key, customer_order_number, is_new_customer and first_order_month](https://segmentstream.com/guides/build-your-own-triple-whale/console-warehouse-table.webp)

### Pipelines: when the numbers refresh

Runs shows each refresh: the hourly rebuild of visits, orders and attribution, the morning load of ad costs, and anything the agent started by hand, with how long each took and whether it passed.

![The pipeline runs page listing web analytics and ad costs runs, all succeeded](https://segmentstream.com/guides/build-your-own-triple-whale/console-pipeline-runs.webp)

### The ontology: what an order is

The ontology describes your business in plain words: an order, its lines, a customer cohort month, a visit, a conversion and the credit each attribution model gave it. Reports, the workspace assistant and any agent you connect over MCP all read these definitions, so they count the same way.

![The Entities page listing attributed conversion, conversion, customer cohort month and order, each described in plain language](https://segmentstream.com/guides/build-your-own-triple-whale/console-entities.webp)

Open Order and you see what it means in plain words, including the net-sales rule you chose in step 4, which warehouse table it reads, and on its Access tab who may read it. Revenue and customers stay private to the roles you chose.

![The Order entity in the console, linked to its customer and its conversion, with its description, its source table gold/order_report and its tabs for properties, metrics and access](https://segmentstream.com/guides/build-your-own-triple-whale/console-entity-order.webp)

### The semantic layer: how ROAS and MER are computed

Each entity's Metrics tab lists the numbers defined on it, with the exact calculation behind each: net sales is the sum of each order's net sales, orders is a count of non-cancelled online orders, new customers counts first orders. There is one definition per number, and every report and every answer uses it.

![The Order entity's Metrics tab, with Orders as COUNT(\*) WHERE cancelled = false and Net sales as SUM(net_sales_minor) WHERE cancelled = false](https://segmentstream.com/guides/build-your-own-triple-whale/console-entity-metrics.webp)

*The semantic layer: each number with the calculation behind it.*

Numbers that combine entities, such as ROAS and MER, are defined in the workspace's ontology code. This is the headline ROAS our agent wrote, as the console's source view shows it: net sales credited to paid-ad visits, over ad spend of the same days, matched by date and currency.

![The workspace's ontology code in the console's source view, highlighting the definition of ROAS of paid ads under last click as credited purchase value over ad spend, aligned by date and currency](https://segmentstream.com/guides/build-your-own-triple-whale/console-roas-definition.webp)

In code it reads like this, and MER is the same shape with all orders' net sales over all spend:

```
roasPaidAdsLastClick: m.divide(
  m.ref("attributedConversion.paidAdsPurchaseValueLastClick"),
  m.ref("adCost.spend"),
  {
    label: "ROAS of paid ads (last click)",
    align: [
      { attributedConversion: "sessionDate", adCost: "date" },
      { attributedConversion: "currency", adCost: "currency" },
    ],
    unit: "ratio",
  },
),
mer: m.divide(m.ref("shopOrder.netSales"), m.ref("adCost.spend"), {
  label: "MER",
  align: [
    { shopOrder: "orderDate", adCost: "date" },
    { shopOrder: "currency", adCost: "currency" },
  ],
  unit: "ratio",
}),
```

When you disagree with a definition, say, you want ROAS on first click or MER with shipping included, you ask your agent to change it, read the change, and deploy. Every report and the assistant follow at once.

Check before you go on:

- The table map shows a green dot on every step.
- Runs show the hourly refresh succeeding.
- The Order entity's Metrics tab shows net sales defined the way you decided in step 4.

## Step 10: Connect Shopify, Google Ads and Meta

Orders come from your store and spend from your ad accounts, and only you can connect them.

**Shopify** reads your store through an app of yours that holds the scopes the agent declared. Enter the app's client ID and secret on the connection's page, or with `segmentstream connection configure shopify`, then authorize it the way that fits the app:

| The app                                                                                        | Authorize with                                                                                                                 |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Created in Shopify's Dev Dashboard by your store's own organization and installed on the store | The client credentials grant: `segmentstream connection authorize shopify --client-credentials`                                |
| Installed on your store from outside its organization                                          | Shopify's consent flow: add the connection's redirect URI to the app, then `segmentstream connection authorize shopify --open` |
| A custom app created in the store's admin, which shows its Admin API access token once         | That token: `segmentstream connection authorize shopify --token-file -`                                                        |

**Google Ads and Meta:** press Authorize next to each one, or let the agent open the same consent page for you with `segmentstream connection authorize google_ads --open`. You sign in to the platform and allow read access.

The tokens stay in SegmentStream, never in your code or the chat. Until you connect them, the reports run on the agent's sample orders and costs. Switching each one to the real source is a change the agent makes when you ask, after the first real load looks right.

Check before you go on:

- Connections show Shopify, Google Ads and Meta as connected.
- Ask the agent to switch orders and costs from sample data to the real sources, and check that the "Sample data" badges go away.

## Step 11: Open your reports and make them yours

The reports live in your workspace's app, behind sign-in, and only the people you choose can open them. Ask the agent to invite you and your team with the analytics role it created:

```
$ segmentstream ontology member invite you@yourcompany.com --role analytics_admin
```

The invitation arrives by email; open it and you are in. The first version our agent built was correct but plain, so we asked for the look we wanted, the same way we asked for everything else:

Prompt to paste into your coding agent:

```text
Redesign the reports as a polished analytics product: dark theme by default with a light/dark switch, near-black surfaces with subtle borders, one accent colour for the brand and a calm palette for channels. Every page starts with a small uppercase section label above a large title and a one-line description. Period as pill buttons (7 days, 28 days, 90 days, custom) and an attribution model switch, sticky at the top. Headline tiles with big numbers, the change against the previous period as a coloured chip, and a sparkline. Charts: net sales vs ad spend as area and bars, ROAS and MER over time as lines, channels as horizontal bars with spend beside credited sales, new vs returning as stacked bars, LTV cohorts as a heatmap. Tables in rounded frames, right-aligned money, a totals row. Every source shown with its platform's own logo (Google Ads, Meta, Instagram, LinkedIn, TikTok, email, direct), and an order's path as a row of those logos ending in the order value. Dense, readable on a laptop and a phone.
```

The screens below are what came back, on 28 days of sample data.

**Store** is the page you open every morning, shown at the top of this guide: net sales, orders, average order value, ad spend, MER, ROAS of paid ads, new customers and blended new-customer CAC, each against the previous 28 days, with net sales against spend per day underneath. On our sample: £9,187.70 net sales from 296 orders, £2,298.37 of spend, MER 4.00× and paid-ads ROAS 2.31× on last click. Below them, each channel's credited net sales beside its spend, with the logos of the sources behind it: paid search returned 2.65× and paid social 1.75×.

![The Store page's channel section: credited net sales beside ad spend per channel as horizontal bars with platform logos, and a table of orders, net sales, share, spend, ROAS, new customers and CAC per channel](https://segmentstream.com/guides/build-your-own-triple-whale/app-store-channels.webp)

**Campaigns** puts every campaign's spend beside the orders and net sales credited to it, with click-through rate, cost per click, cost per order and ROAS. On the sample, brand search returns 6.56× and broad prospecting 0.77×: the kind of spread you want to see per campaign, not as one blended number.

![The Campaigns report with eight Google Ads and Meta campaigns marked with their platform logos, spend beside credited net sales as bars, and a table of spend, impressions, clicks, CTR, CPC, orders, net sales, cost per order and ROAS with a totals row](https://segmentstream.com/guides/build-your-own-triple-whale/app-campaigns.webp)

**Orders** lists each order with the path that led to it, the logo of each platform from the first visit to the last, ending in its value. Switch between last click and first click to see which channels open the door and which close it; open an order to see what was bought and every visit before it.

![The Orders report with the latest orders, each marked new or returning, with its path as platform logos such as Facebook, Google Ads, ChatGPT and Perplexity ending in the order value](https://segmentstream.com/guides/build-your-own-triple-whale/app-orders.webp)

**Customers** shows new and returning orders, new-customer CAC by channel, and lifetime value as a cohort heatmap: net sales per customer, month by month after the first order, grouped by the month of that order.

![New and returning orders, new-customer CAC by channel, and a lifetime-value heatmap by first-order month from May to November, months 0 to 6](https://segmentstream.com/guides/build-your-own-triple-whale/app-customers.webp)

**Products** ranks your best sellers by net sales, with units, orders, each one's share and its trend; each product opens its variants.

![The Products report with weekly net sales by product as stacked bars and a ranking of products by net sales with units, orders, share and a sparkline each](https://segmentstream.com/guides/build-your-own-triple-whale/app-products.webp)

**Data quality** keeps the numbers honest: whether the tracker sent page views every day, how much paid traffic matched an ad, whether ad costs are up to date, and how many orders were tied to their visits by visitor ID, by email or not at all.

![The Data quality report with its checks, including orders tied to their visits, page views per day and paid traffic matched to ads](https://segmentstream.com/guides/build-your-own-triple-whale/app-data-quality.webp)

Look at each report before you rely on it, and tell the agent what you see, as you would a colleague. In our walkthrough three things needed a second pass: the lifetime-value grid first failed to load, the assistant first gave ROAS over every channel's credited sales where the page showed paid ads only, and the first sample spend was too flat to look like a real store. The agent found each cause, fixed it, added a test where it could and deployed again.

Check before you go on:

- You can sign in to the app and open every report.
- Each check in Data quality is **Healthy**, or you know why it is not.

## Step 12: Ask your analyst, in the app or in your team's chat

The workspace comes with an agent of its own, and your coding agent teaches it the new numbers. It reads the same ontology and the same metrics the reports read, so it is an analyst that knows your store: it answers in plain words, names the attribution model and dates it used, and says when figures are sample data. It never computes ROAS its own way, because ROAS is defined once.

![The analyst in the workspace app answering "Which campaign should I cut?" with the campaign's ROAS under last and first click, its spend, orders and net sales, a note that the figures are sample data, and suggested questions](https://segmentstream.com/guides/build-your-own-triple-whale/app-assistant.webp)

*Asked which campaign to cut, the analyst reads the campaign metrics under both attribution models and suggests a test, not a guess.*

Ask it what you would ask a colleague: "Why did ROAS drop last week?", "Which campaign should I cut?", "How much did first-time buyers from Meta spend in their second month?". It looks the numbers up rather than guessing, and only the people you invited, with the roles you gave them, can ask.

The same agent can sit where your team already talks: Slack, Telegram, WhatsApp or email, beside the chat in the app. Ask your coding agent for the one you use:

Prompt to paste into your coding agent:

```text
Connect our workspace agent to our Slack, so the team can ask it about sales, ROAS and campaigns in a channel and in direct messages. Use the same roles as the app.
```

Your coding agent declares the channel and deploys; you authorize the connection yourself in the console, as you did for Shopify, and the agent answers there from the same definitions as the reports.

In our walkthrough the coding agent declared Telegram, Slack and WhatsApp and left them waiting, as the Connections page in step 9 shows; we did not connect a real chat. Each one is turned on in the same change that connects it: Telegram with a bot you create through SegmentStream, Slack with an app of yours, WhatsApp with your business number through SegmentStream's Meta app. Your coding agent writes the steps for each into the workspace's `connections/README.md`.

Check before you go on:

- Ask the analyst a question the Store page answers, and check that its numbers match and that it names the model and dates it used.

## Build it yourself, or have it built

- Build it yourself: Request access to SegmentStream, then paste this tutorial's prompts into your coding agent. The workspace, its code and its data are yours, and you pay only for what runs. [Request access](https://segmentstream.com/#waitlist).
- Have us build it: Our engineers build it with you on your data in a fixed-scope pilot: the first version live in two weeks, with parity proven before anything is switched off. [Start a pilot](https://segmentstream.com/enterprise#pilot).

## Frequently asked questions

### Do I need to write code myself?

No. Your coding agent writes it in the workspace's repository and runs the SegmentStream CLI to create, check and deploy. You answer its questions, approve its plan, add the snippet to your theme and connect your accounts. Review the snippet as you would any change to your store before you publish it.

### Does my store need to move off Shopify?

No. Shopify stays your store. SegmentStream reads its orders, products and customers through a read-only connection, keeps the data in your workspace's warehouse, builds the reports and runs the app your team signs in to.

### How is net sales different from what Shopify shows?

It is what you decide in step 4. Ours is what customers paid for products after discounts, minus refunds, without shipping and VAT, and a refund lowers the order it belongs to. The definition lives in your workspace's code and shows in the console's Metrics tab, so you can read it, change it and have your accountant check it.

### Can it send purchases back to Meta and Google?

Yes, if you ask the agent for it. A destination in the workspace's pipelines can send purchases to Meta's Conversions API and to Google Ads as offline conversions, through a connection that holds the token for it. The ready-made Google Ads and Meta connections used here only read, so the agent declares a separate connection for sending. Our walkthrough did not build this.

### Can I see results by ad and creative?

Creative-level reporting is something you ask the agent for. This build reports by channel and campaign; the ad costs already load per ad, so the agent adds ad and creative reports on the same definitions, and the analyst reads them too.

### What about profit, product costs and other channels?

Ask for them the same way. Product costs from a spreadsheet or your inventory system, shipping costs, email or affiliate spend: each is a connection or a table the agent adds, and a number it defines once in the ontology, so the reports and the analyst use it straight away.

### Where does the data live?

In your workspace, in the region you chose when you created it, for as long as you decide. Every number in the reports is built from your orders, visits and costs by pipelines in your workspace's repository, so any number can be traced back to the orders behind it.

### Does it work with Codex or Cursor instead of Claude Code?

Yes. The prompts are plain text that any coding agent can follow, and the work goes through the SegmentStream CLI, which every agent can run.
