Revenue attribution
Shopify
Attribute Shopify orders and refunds to the visits that earned them.
Shopify works differently from other providers: you create a small private app for your store, and Calmstats does the rest. It installs the script on your storefront, imports the last 30 days of paid orders, registers order and refund webhooks, and syncs every day.
Connect your store
- Open dev.shopify.com (Shopify Dev Dashboard), signed in as the store owner, and click Create app. Name it Calmstats.
- Under Access → Scopes, add read_orders and write_script_tags, then click Release.
- On the app's Home, click Install app, pick your store and approve the install.
- In the app's Settings, copy the Client ID and Client secret and paste them in Settings → Revenue with your .myshopify.com domain.
- If you added the Calmstats script to your theme by hand, you can remove it: the connection installs it for you.
Use your store's .myshopify.com domain, not a custom domain.
What happens next
- The visitor is saved on the Shopify cart, so orders are attributed with no checkout code.
- Refunds are subtracted automatically, and test orders are skipped.
- Disconnecting removes the webhooks and the script from your store.