Ocular connects to Shopify and Shopify Plus stores using two credentials — your Shop ID and an Admin API access token from a custom app you create. The whole flow takes about 5 minutes.Documentation Index
Fetch the complete documentation index at: https://docs.ocular.dev/llms.txt
Use this file to discover all available pages before exploring further.
What you need
Shop ID (
my-store.myshopify.com) and an Admin API access token from a custom app.What it unlocks
Sales Performance (D2C), the revenue side of the P&L, customer cohorts, and discount attribution.
Step 1 · Find your Shop ID (store domain)
Step 2 · Generate an Admin API access token
Apps and sales channels → Develop apps
Navigate to Apps and sales channels and click Develop apps. If prompted, click Allow custom app development and accept the terms.
Configure Admin API scopes
On the Configuration tab, click Configure in the Admin API Integration section, then enable these read permissions:Click Save.
Orders & customers
read_orders(also requestread_all_ordersfrom Shopify Partner Dashboard for history beyond 60 days)read_customersread_returns
Money & finance
read_shopify_payments_payoutsread_gift_cardsread_store_credit_account_transactions
Catalog & inventory
read_productsread_inventoryread_price_rulesread_discounts
Fulfilment & shipping
read_merchants_managed_fulfillment_ordersread_assigned_fulfillment_ordersread_fulfillmentsreads_shipping
Step 3 · Plug the credentials into Ocular
Open the connector form
In Ocular, navigate to Data Management → Connectors → Add connector → Shopify.
Fill the fields
Connector Name
Free-form label (e.g.,
shopify_main).Connector Identifier
Auto-generated by Ocular.
Start Date
YYYY-MM-DD — how far back Ocular should pull data.
Lookback Days
Past days to keep refreshing on every sync. Default 30.
Schedule Frequency
Numeric value + unit (e.g., 4 hours).
Shop ID
my-store.myshopify.comAccess Token
The token from Step 2.
Troubleshooting
Token isn't accepted
Token isn't accepted
Re-copy the token — there’s a high chance of an accidental leading/trailing space. If that fails, uninstall and reinstall the custom app, then generate a fresh token. All previous tokens are invalidated.
Missing orders beyond 60 days
Missing orders beyond 60 days
read_orders alone caps at 60 days of history. To pull further back, request read_all_orders from the Shopify Partner Dashboard, then re-enable it in the custom app’s scopes.Permission error during sync
Permission error during sync
Open the custom app’s Configuration → Admin API access scopes and confirm every scope above is enabled. After enabling additional scopes, you must click Save — Shopify won’t re-issue the token, the same one will start working with the new permissions.
For ticket-writing format when filing a connector issue, see Working with the Ocular team → Connector-not-working tickets.
