# Everything you need to set up Affilyflow

> Tracking setup for stores, technical reference for developers and an API for affiliates – in one place, written from how the product actually works.

## Which route fits your store?

Tracking has two jobs: remember the affiliate's click when the customer lands, and report the sale with its order number and amount. How that happens depends on where you sell.

| You sell on | How the sale is tracked | Guide |
|---|---|---|
| Shopify | The app creates the pixel and your account – no code. | [Shopify](https://www.affilyflow.com/en/docs/store/shopify) |
| WooCommerce | Our plugin tracks from your own server and reports refunds. | [WooCommerce](https://www.affilyflow.com/en/docs/store/woocommerce) |
| Smartweb, HostedShop, DanDomain, Shoporama | The tracking code on every page plus a sale code on the order confirmation – the platform fills in the order number and amount. | [Smartweb](https://www.affilyflow.com/en/docs/store/smartweb), [DanDomain Classic](https://www.affilyflow.com/en/docs/store/dandomain-classic), [Shoporama](https://www.affilyflow.com/en/docs/store/shoporama) |
| Magento 2, PrestaShop, Shopware 6 | The tracking code on every page; the sale is read from the platform's own Google Analytics 4 module. | [Magento 2](https://www.affilyflow.com/en/docs/store/magento), [PrestaShop](https://www.affilyflow.com/en/docs/store/prestashop), [Shopware 6](https://www.affilyflow.com/en/docs/store/shopware) |
| Webflow | The tracking code in the site's custom code plus one line on the order confirmation that reads the order number and amount from the page. | [Webflow](https://www.affilyflow.com/en/docs/store/webflow) |
| Custom-built store (e.g. Laravel or PHP) | Scan your site: if it already sends the purchase to Google Analytics, it takes one line in total. Otherwise, one line on the order confirmation. | [Custom-built store](https://www.affilyflow.com/en/docs/store/custom-built) |
| Stripe Checkout and Payment Links | A webhook reports one-off purchases, subscriptions and refunds. | [Stripe](https://www.affilyflow.com/en/docs/store/stripe) |

If you have a developer, [server-side tracking](https://www.affilyflow.com/en/docs/store/server-side-tracking) keeps working on iPhone and with ad blockers too.

## How it fits together

1. An affiliate shares a link. The click goes through Affilyflow and lands on the store with a click ID in the address (`?afid=c_…`).
2. The store's tracking remembers the click – the Shopify pixel, the WooCommerce plugin or `track.js`.
3. The customer buys. The sale is reported to Affilyflow with the order number and amount and linked to the click.
4. The commission is locked on the click and approved once the approval period has passed, unless the store rejects the sale.

Read the whole journey in [How tracking works](https://www.affilyflow.com/en/docs/start/how-tracking-works).

## Test before you go live

Every store has a **test link** under **Program → Setup**, in the **Test tracking** step. A test purchase through it earns no commission and no fee, and the page shows the click, the order number and the amount straight away – including how the amount was calculated. See [Testing and troubleshooting](https://www.affilyflow.com/en/docs/store/testing-and-troubleshooting).

## For developers and affiliates

- **Developers:** [track.js](https://www.affilyflow.com/en/docs/reference/track-js), [the sale line](https://www.affilyflow.com/en/docs/reference/sale-line), [the Google Analytics route](https://www.affilyflow.com/en/docs/reference/google-analytics), [the conversion API](https://www.affilyflow.com/en/docs/reference/conversion-api) and [status codes](https://www.affilyflow.com/en/docs/reference/status-codes).
- **Affiliates:** [links and sub-IDs](https://www.affilyflow.com/en/docs/affiliate/links-and-sub-ids), the [REST API](https://www.affilyflow.com/en/docs/affiliate/rest-api) and [MCP for AI assistants](https://www.affilyflow.com/en/docs/affiliate/mcp).

> [!TIP]
> Using an AI coding assistant such as Claude Code or Cursor? Every page is also available as Markdown (add `.md` to the address), and the whole documentation is in `/llms-full.txt`.

Source: https://www.affilyflow.com/en/docs
