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

# Shopify integration

> Track orders from your Shopify store and attribute them to the partner who referred the customer

Shopify is a native integration: the **Partnero Affiliate Management** app handles the whole chain for you —
tracking visitors, linking customers to partners, and recording orders.

> [!NOTE]
>
> You do not add a tracking script, edit your theme, or configure any webhooks. The app installs its own web
> pixel and subscribes to the Shopify events Partnero needs.

## Step 1: Install the app

1. Open the [Partnero Affiliate Management app](https://apps.shopify.com/partnero-affiliate-management) on the
   Shopify App Store and click **Install**.
2. Confirm by clicking **Install** again in your Shopify admin.
3. You are taken to Partnero. Choose the program you want to connect and click **Connect**.

If you have not created a program yet you are prompted to create one. Enter the basics and click **Create** —
everything is editable afterwards.

You can connect both an affiliate and a refer-a-friend program to the same store. See
[Connect additional programs to your Shopify store](https://docs.partnero.com/knowledge-base/shopify/connect-additional-programs-to-your-shopify-store.md).

## Step 2: Confirm the connection

In Partnero, go to **Integration** and scroll to **Apps & Integrations**. Shopify should show **Connected**.

That is the whole setup. Statistics appear once a referred customer completes an order.

## What gets tracked

Partnero records paid orders from your referred customers and reverses the commission automatically when an
order is refunded. A partial refund recalculates the commission on what's left of the order.

Commissions are calculated on the order subtotal: products after discounts, without shipping, duties, taxes and
tips. See [What commissions are calculated on](https://docs.partnero.com/knowledge-base/commissions-rewards/what-commissions-are-calculated-on.md).

## How orders are attributed

An order can reach the right partner two ways, and you do not have to choose between them:

> [card] Referral link
>
> The visitor arrives through a partner's link, and the app's web pixel carries that attribution into the
> order. Partnero also tags the Shopify customer so their later orders stay attributed.

> [card] Partner discount code
>
> The customer enters a partner's discount code at checkout. Partnero matches the code used on the order back
> to the partner who owns it — no referral click needed.

Because the customer is tagged in Shopify, repeat orders are attributed even if the original cookie is long
gone.

## Discount codes

Partner discount codes are created and synced from Partnero rather than built by hand in Shopify. See
[Create and use Shopify coupons](https://docs.partnero.com/knowledge-base/shopify/create-and-use-shopify-coupons.md) and
[How to use promotion codes](https://docs.partnero.com/knowledge-base/shopify/how-to-use-promotion-codes.md).

## Troubleshooting

> [accordion] Orders are not appearing in Partnero
>
> Check the app is still installed in Shopify and that **Integration** → **Apps & Integrations** shows
> Shopify as **Connected**. Uninstalling the app in Shopify removes the webhooks Partnero relies on.

> [accordion] Orders appear but no partner is attributed
>
> Open the customer in Shopify and look at its tags — a connected store tags referred customers with a
> `partnero_` tag holding the partner key. If the tag is missing, the order had neither a tracked referral
> visit nor a partner discount code.

> [accordion] A discount code is not crediting the partner
>
> The code has to exist in Partnero and be assigned to that partner. A code created directly in Shopify and
> never linked in Partnero has nothing to attribute to.

> [accordion] Only paid orders show up
>
> That is expected. Partnero listens for paid orders, not drafts or unpaid checkouts, so an abandoned or
> pending order will not create a transaction.

## Next steps

> [card] [Shopify coupons](https://docs.partnero.com/knowledge-base/shopify/create-and-use-shopify-coupons.md)
>
> Discount codes that track referrals

> [card] [Refer-a-friend on Shopify](https://docs.partnero.com/knowledge-base/referral-programs/shopify-refer-a-friend-program.md)
>
> Let customers refer customers

> [card] [Store credit as reward](https://docs.partnero.com/knowledge-base/referral-programs/offer-shopify-store-credit-as-reward.md)
>
> Pay rewards in store credit

> [card] [Multiple programs](https://docs.partnero.com/knowledge-base/shopify/connect-additional-programs-to-your-shopify-store.md)
>
> Run affiliate and referral side by side


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.