Before you begin
SegmentStream connects to Shopify using a custom app that you create inside your own Shopify admin, authenticated with the client credentials grant. You will share the shop domain and the app’s Client ID / Client Secret with SegmentStream. The app lives in your store’s organization — SegmentStream never installs anything on your store directly.1
Open the Shopify admin
Log in to your Shopify admin and go to Settings → Apps and sales channels → Develop apps.
2
Build an app in the Dev Dashboard
Click Build apps in Dev Dashboard, then Create app. Give the app a recognisable name (for example,
SegmentStream).3
Configure Admin API scopes
Create an API version for the app and grant the following Admin API scopes:
read_ordersread_customers
4
Release and install the app
Release the app version and install it on your store. Approve the protected customer data access prompt if it appears — SegmentStream only stores the customer identifier, no personal data.
5
Collect the credentials
From the app’s API credentials section, copy:
- Shop domain — in the format
your-store.myshopify.com - Client ID
- Client Secret
Shopify’s client credentials grant only works when the app and the store are in the same Shopify organization, which is why you create the app yourself rather than installing a public SegmentStream app.
Getting started
1
Navigate to Data Sources
Inside the SegmentStream admin panel, go to the Data Sources page and click + NEW in the top right corner.
2
Select Shopify
Choose Shopify from the list.
3
Enter your credentials
Paste the Client ID and Client Secret from the Shopify admin, then click Authenticate. SegmentStream will exchange these for an access token against your shop and verify that the required scopes are granted.
4
Enter the shop domain
In the Shop domain field, enter your shop’s domain in the format
your-store.myshopify.com.5
Configure sales channels
In the Sales channels field, list the Shopify sales channels you want to count in attribution reports — typically
web for the Online Store. Orders from channels outside this list are still imported for reconciliation but are excluded from attribution reports.6
Choose the revenue definition
Pick how SegmentStream should calculate revenue:
- Gross (default) — total price including tax and shipping, before refunds. Matches the value Google Analytics 4 reports for
purchaseevents. - Net of refunds — total price minus total refunded.
7
Save
Click Save. SegmentStream will start importing orders on the next scheduled sync (hourly by default).
What SegmentStream imports
Per order, SegmentStream stores:- Order ID, order name, timestamps (created, processed, updated, cancelled), currency, totals (price, subtotal, discounts, tax, shipping, refunded)
- Discount codes applied to the order (plus a normalised lower-cased copy used by coupon-based attribution rules)
- The customer identifier — this is Shopify’s own numeric customer record ID (the same ID visible in your Shopify admin’s customer URL). SegmentStream does not derive it from the customer’s email, name, or any other PII; it is copied as-is from Shopify’s
customerobject on the order. For guest checkouts with no customer record attached, the field is empty. - A derived
customer_typeflag:newfor the customer’s first non-test, non-cancelled order;returningthereafter;unknownwhen no customer is attached (guest checkout)
Historical orders
Once the data source is saved and enabled, SegmentStream begins importing orders from the next sync forward. If you need orders placed before the connection was set up, reach out to the SegmentStream team and we’ll load them on your behalf.Scopes and privacy
SegmentStream requests only the read scopes it needs:read_orders and read_customers. No order creation, modification, or customer PII (name, email, address, payment details) is read or stored. The Client Secret is encrypted at rest and never returned to the admin panel after you save.