> ## Documentation Index
> Fetch the complete documentation index at: https://help.afflo.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Shopify

> Connect Shopify to track orders and attribute sales to your partners.

Shopify is Afflo's primary ecommerce integration. Once connected, every order on your store can be attributed to the affiliate or creator who drove it.

## What it does

* Syncs orders to Afflo for attribution
* Lets Afflo issue partner-specific discount codes
* Powers the Link Statistics and Payouts reports

## Before you start

* You're the store **owner** or an **admin** on the Shopify store.
* The store is active (not paused, frozen, or in development mode).

## Connect

<Steps>
  <Step title="Open Stores">
    In Afflo, go to **Settings → Stores** (or **Integrations → Ecommerce → Shopify**).
  </Step>

  <Step title="Click Connect Shopify Store">
    Afflo redirects you to Shopify.
  </Step>

  <Step title="Approve the install">
    Review the permissions and click **Install app** in your Shopify admin.
  </Step>

  <Step title="Return to Afflo">
    You're sent back. The store appears in your connected stores list with its domain and sync status.
  </Step>
</Steps>

## What syncs

* **Orders** (new, updated, refunded) — used for attribution and commission calculations.
* **Products** — used when issuing discount codes or attributing specific SKUs.
* **Discount codes** — created when you enable codes on a program.

Historical orders from before you connected don't sync — Afflo only attributes orders placed after the connection is live.

## Disconnect

1. Go to **Settings → Stores**.
2. Open the actions menu on the store row.
3. Click **Disconnect**.
4. Confirm. Afflo's app is uninstalled in Shopify. Historical data stays in your reports.

## Tips

* Connect Shopify as early in setup as possible — partner programs depend on orders flowing in.
* If you run multiple stores, connect each one. Afflo tags orders by store so your dashboards stay clean.
* Before going live, create a test program and place a small order with a test link to confirm attribution works end-to-end.

## Troubleshooting

**"You don't have permission" in Shopify.** Sign out of any secondary admins and retry as the store owner.

**Orders not attributing.** Confirm partners are using links pointing to your connected domain, and that the attribution window on the program covers the time between click and purchase.

**Duplicate orders.** Usually caused by migrating domains. Disconnect the old domain first.

## Related

<CardGroup cols={2}>
  <Card title="Stores settings" icon="store" href="/settings/stores-shopify">
    Manage connected stores day-to-day.
  </Card>

  <Card title="Payouts" icon="wallet" href="/tour/payouts">
    Pay partners for the orders Shopify sends in.
  </Card>
</CardGroup>
