Connect your Shopify store
GrowthFlow credits each Shopify order to the smart-link click that brought the visitor. To do that, your store installs an app of its own: you create it in Shopify’s Dev Dashboard, register it in GrowthFlow, and install it on the store from the install link Shopify generates. Once it is installed, orders arrive by webhook and a web pixel carries the visitor’s click through checkout.
Before you start
Section titled “Before you start”You need:
- Admin access to the store, to approve the install.
- Access to Shopify’s Dev Dashboard for the organization that owns the store, to create the app.
- The store’s
*.myshopify.comdomain (for exampleyour-store.myshopify.com). GrowthFlow registers the store by this domain, not by its custom domain. - Recommended: a connected domain with a smart link on it, so you can check the setup with a real click and a test order at the end.
Each store connects through its own app (custom distribution), so a second store means a second app. See More than one store.
Install the app
Section titled “Install the app”The steps go back and forth between the Dev Dashboard and GrowthFlow. In GrowthFlow, open Integrations, then Register and connect stores on the Shopify card.
Create the app in the Dev Dashboard
Section titled “Create the app in the Dev Dashboard”- In Shopify’s Dev Dashboard, create an app and choose to start from the Dev Dashboard.
- Open the app’s Settings → Credentials. You need its client id and client secret in the next step.
Register the store in GrowthFlow
Section titled “Register the store in GrowthFlow”On GrowthFlow’s Shopify page, under Register a store:
- Store domain — the store’s
your-store.myshopify.comdomain. - Client id and Client secret — from the app’s Settings → Credentials.
- Select Register.
The store appears in the list as Registered. GrowthFlow seals the client secret before storing it and never shows it again.
Paste the App URL and redirect URL
Section titled “Paste the App URL and redirect URL”The panel In the Dev Dashboard (App settings) on the Shopify page shows two addresses. Copy each one with its copy button and paste it into the app’s settings in the Dev Dashboard, exactly as shown:
| GrowthFlow shows | Paste it into the app’s |
|---|---|
| App URL | App URL |
| Allowed redirection URL | Allowed redirection URL(s) |
The same panel lists the Scopes the app asks for:
read_orders, write_pixels, read_customer_events (see
What the app can read).
Declare protected customer data
Section titled “Declare protected customer data”Shopify asks every app that receives order webhooks to declare which customer data it uses. In the Dev Dashboard, under the app’s API access → Protected customer data access, request level 1: protected customer data without names, emails, phone numbers or addresses (GrowthFlow’s order webhooks don’t ask for those fields). Shopify asks for a reason for each item and a few data-protection answers. Development stores are granted access at once.
Without it, Shopify refuses the app’s order webhooks, and the store stays on Waiting for the first webhook after an order.
Deploy the app configuration
Section titled “Deploy the app configuration”GrowthFlow’s part of the app — the scopes, the web pixel and the webhook subscriptions — is deployed to your app by whoever runs your GrowthFlow instance, with the Shopify app workflow.
On the hosted service, book a setup call with your account contact. On the call, you create the app’s App Automation Token together in the Dev Dashboard, and the GrowthFlow team stores it with the app’s client id to deploy the configuration. Nothing secret — not the client secret, not the token — is ever sent by email or chat.
If the configuration isn’t deployed before the install, Shopify grants the app no scopes and the store shows a missing scopes warning.
Open the install link
Section titled “Open the install link”- In the Dev Dashboard, open the app’s Distribution and choose Custom distribution.
- Enter the store’s
*.myshopify.comdomain and generate the install link. - Open the install link while signed in to the store’s admin.
- Shopify shows what the app asks for. Approve the install.
Back in GrowthFlow
Section titled “Back in GrowthFlow”After you approve, Shopify sends you back to GrowthFlow’s Shopify page with the store selected. GrowthFlow activates the web pixel on the store straight away, and the store’s row reads:
Installed · Pixel active · Waiting for the first webhook
The first webhook arrives with the store’s next order. To see it now, place a test order.
What the app can read
Section titled “What the app can read”The app asks for three scopes: read_orders for the order and refund webhooks, and
write_pixels with read_customer_events to add, remove and read back GrowthFlow’s web pixel.
Shopify sends a webhook when an order is created, paid, updated or cancelled, when a refund is made, and when the app is uninstalled (plus Shopify’s mandatory privacy webhooks). GrowthFlow asks for these fields only:
- Orders: ids, name and number, financial status, test flag, times, currencies, subtotal and total, checkout token, source, and the page the visit started on (the landing URL).
- Refunds: ids, time, and each transaction’s kind, status, amount and currency.
- Uninstall: the store’s id and domain.
Revenue is the order’s subtotal in shop currency, net of refunds, without shipping and taxes.
What the pixel does
Section titled “What the pixel does”The web pixel is a script Shopify runs in a sandbox on your storefront and checkout. On page views, add to cart, checkout start and checkout completion:
- It only runs when the visitor has allowed analytics, or no consent is needed in their region (see Consent banner blocks the pixel).
- It reads GrowthFlow’s click id (
gf_cid) and variant (gf_var) from the smart link’s landing page and uses them for 7 days. - A visitor with no smart-link click and no GrowthFlow visitor cookie sends nothing.
- Otherwise each event sends the click, variant and visitor ids, the page path (without its query), the cart or checkout amount, Shopify’s anonymous visitor and event ids, the consent choices, and at checkout the order id and checkout token.
This lets GrowthFlow credit an order within seconds of checkout. Pixel events are only hints: an order is attributed once Shopify’s order webhook confirms it.
Deactivate pixel on the store’s status turns the pixel off; orders still arrive by webhook and can be attributed by their landing URL. Activate pixel turns it back on.
Store status
Section titled “Store status”Select a store in the list to see its status. The row sums it up, for example Installed · Pixel active · Receiving webhooks; the panel below the list has the details.
Status:
- Registered — the store is registered, but the app isn’t installed yet. The panel reads “Waiting for the install: open the install link Shopify generated for this store.”
- Installed — the app is installed, with the date of the install.
- Error — the install didn’t finish, or Shopify refused the store’s access token. A warning says why; see Install link errors and Access token refused.
- Uninstalled — the app was uninstalled from the store’s admin.
- Disconnected — you disconnected the store in GrowthFlow (see Disconnect or uninstall).
For an installed store, the panel also shows:
- Scopes — the scopes Shopify granted.
- Pixel — Active (with the pixel’s id in Shopify) or Off.
- Webhooks — Waiting for the first webhook until GrowthFlow has verified a delivery from the store, then Receiving · last at the time of the latest one.
The page doesn’t refresh on its own: reload it to see a new webhook. Re-check asks Shopify again for the granted scopes and the pixel, and answers with a line such as “Checked your-store.myshopify.com: pixel active, receiving webhooks.”
Warnings appear under the details, each with a link to its entry below:
| Warning starts with | See |
|---|---|
| “Waiting for the install: open the install link…” | Open the install link |
| “The app has no web pixel extension yet…” | Pixel not active |
| “Shopify didn’t activate the pixel…” | Pixel not active |
| “Shopify granted no scopes…” (or names only some) | Missing scopes |
| “Shopify denied the pixel call (ACCESS_DENIED)…” | Missing scopes |
| “Shopify refused the authorization…” | Install link errors |
| “Shopify had trouble finishing the install…” | Install link errors |
| “Shopify refused this store’s access token…” | Access token refused |
| “This store’s saved credentials can’t be read…” | Unreadable credentials |
Check the setup with a test order
Section titled “Check the setup with a test order”Orders paid with a test payment method are attributed like any other and show a Test pill next to their status on Orders. They count toward the Orders page totals, and the tiles say how many of them there are (for example “incl. 1 test”).
To check the whole setup:
- Turn on a test payment method in your store’s payment settings (on a development store, Shopify’s test gateway). On a password-protected store, read Password-protected and development stores first.
- Open one of your smart links in a private browser window, and allow analytics if your store shows a consent banner.
- Add a product to the cart and complete checkout with the test payment method.
- Open Orders in GrowthFlow (the Orders button on the Shopify page). Back on the Shopify page, the store’s Webhooks now read Receiving · last at … (reload the page).
How long the order takes to be attributed depends on the signal that credits it, shown in the Attribution column:
- Pixel — within seconds of the checkout.
- Landing URL — used when there is no pixel event for the order (pixel off, or no analytics consent). GrowthFlow first waits 10 minutes for a pixel event; the next check, which runs every 15 minutes, then credits the order. That is up to about 25 minutes. Until then the order reads Unattributed · Not checked yet.
- Visitor cookie — within seconds, like the pixel. The visitor id comes from the order’s pixel
events, so it needs the pixel active and the visitor’s analytics consent. It also needs your
smart-link domain and your storefront to share a domain, such as
go.yourstore.comandyourstore.com; never on a*.myshopify.comstorefront.
An order that no signal credits reads Unattributed with a reason, for example No GrowthFlow click reached the store. A refund updates the order’s net revenue within seconds of Shopify’s refund; the order stays counted once, with its attribution.
Disconnect or uninstall
Section titled “Disconnect or uninstall”There are two ways to stop a store, and they do different things.
Disconnect (in GrowthFlow, at the bottom of the store’s panel) erases the store’s access token and client secret; confirm with Disconnect your-store.myshopify.com. GrowthFlow can then no longer verify the store’s webhooks or accept its pixel events, so new orders stop being read. The store stays listed as Disconnected. To connect it again, register it again with its client id and secret, then open the install link.
Uninstall the app in the store’s admin to remove the pixel and stop the webhooks at Shopify’s end. GrowthFlow receives the uninstall, erases the access token and shows the store as Uninstalled. To install it again, open the install link again.
To stop a store completely, do both. Either way, the orders GrowthFlow has already received stay on Orders, with their attribution.
Troubleshooting
Section titled “Troubleshooting”Pixel not active
Section titled “Pixel not active”The store’s Pixel reads Off, or a warning says the pixel isn’t active.
- “The app has no web pixel extension yet…” The app configuration, which includes the pixel, isn’t deployed to the app. Have it deployed (see Deploy the app configuration), then select Activate pixel.
- “Shopify didn’t activate the pixel (…).” Select Activate pixel to try again.
- You turned it off. It stays off until you select Activate pixel.
- To check in Shopify: the store’s admin → Settings → Customer events lists GrowthFlow’s pixel when it is connected.
Webhooks not arriving
Section titled “Webhooks not arriving”The store’s Webhooks still read Waiting for the first webhook after an order.
- Reload the page: the status doesn’t refresh on its own.
- Check that the app has protected customer data access (see Declare protected customer data). Without it, Shopify refuses the order webhooks.
- Check that the app configuration was deployed (see Deploy the app configuration): the webhook subscriptions are part of it. After a new deploy, place another test order.
Missing scopes
Section titled “Missing scopes”A warning such as “Shopify granted no scopes. Deploy the app configuration (GitHub → Actions → Shopify app), then open the install link again.” or “Shopify denied the pixel call (ACCESS_DENIED)…”.
Shopify grants the scopes of the app configuration that is deployed, not the ones GrowthFlow asks for during the install. Have the configuration deployed (see Deploy the app configuration), then open the install link again and approve. If Shopify already shows the new scopes for the store, select Re-check to read them, then Activate pixel.
Install link errors
Section titled “Install link errors”- “Shopify refused the authorization (the code expired, or the client id or secret is wrong).” Compare the client id on the store’s panel with the app’s Settings → Credentials. If you registered the wrong client id or secret, select Disconnect, register the store again with the right ones, and open the install link again. If they are right, the approval took too long: open the install link again.
- “Shopify had trouble finishing the install.” Open the install link again.
- “This link couldn’t be verified. Open the install link for your store again.” The link is old (Shopify’s signed links are only accepted for a few minutes: open it again from the Dev Dashboard), the store isn’t registered in GrowthFlow (or was disconnected), or it was registered with another app’s client secret. Register it with the credentials of the app whose install link you opened.
- “This install link has expired or was already used.” Open the install link again; an approval page is valid for 10 minutes.
- “This link isn’t valid.” The link was cut or changed. Copy the install link again from the Dev Dashboard.
Access token refused
Section titled “Access token refused”“Shopify refused this store’s access token (was the app uninstalled?).” The app was uninstalled from the store, or its access was revoked. Open the install link again to reinstall it.
Unreadable credentials
Section titled “Unreadable credentials”“This store’s saved credentials can’t be read. Disconnect it and register it again.” (or, when you open the install link, “This store’s saved credentials can’t be read. Register it again.”) GrowthFlow can no longer unseal the store’s client secret. Select Disconnect, register the store again with its client id and secret, and open the install link again.
“This deployment’s credentials key is missing or invalid.” The problem is on the instance, not your store: contact your account contact or the instance’s operator.
Consent banner blocks the pixel
Section titled “Consent banner blocks the pixel”The pixel only runs when the visitor allows analytics. A visitor who declines, or doesn’t answer a banner where consent is required, sends no pixel events. Their orders can still be attributed by the Landing URL — the smart link’s parameters on the page the visit started on — after the wait described in Check the setup with a test order. When testing, allow analytics on the banner to see the Pixel signal.
Password-protected and development stores
Section titled “Password-protected and development stores”Every development store, and any store before launch, is protected by a storefront password. Shopify then records the password page as the visit’s landing page, so the Landing URL signal is lost for visitors who had to enter the password. The pixel still works. A live store without a password is not affected.
To test the landing URL on a password-protected store:
- Open the storefront and enter the password.
- In your browser’s developer tools, delete the store’s
_shopify_analytics,_shopify_marketingand_merchant_analyticscookies. Keep_shopify_essential: it holds your password access. - Click the smart link. The visit now starts on the smart link’s destination, with its parameters.
More than one store
Section titled “More than one store”Each store needs its own app in the Dev Dashboard, its own app configuration deploy, and its own registration under Register a store. A store can be registered in one workspace only: “… is already registered on this instance, so it can’t be added here.” means another workspace has it. With more than one store, Orders has a Store filter.
Other messages
Section titled “Other messages”- “Enter the store’s own myshopify.com domain (for example your-store.myshopify.com), not its
custom domain.” Register the store by its
*.myshopify.comdomain, shown in the store’s admin under Settings → Domains. - “Enter the app’s client id from the Dev Dashboard (Settings → Credentials).” (or the same for the client secret) The value is missing, or isn’t a client id or secret.
- “You’ve registered 5 stores in the last 10 minutes.” Wait the minutes the message names.
- “Shopify connections aren’t configured on this deployment yet.” The instance’s operator hasn’t finished setting up Shopify connections; ask your account contact.
- “Stores are read-only here.” You opened a preview or a second deployment of GrowthFlow; register and install stores on the deployment the message names.
- “Couldn’t reach Shopify”, “Shopify is having trouble right now” or “Shopify is rate-limiting requests.” A temporary problem at Shopify; nothing was changed. Try again in a minute.