Affilyflow Docs

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.

Where do you want to start?

I run a webshop

Set up tracking, test a purchase and make your program visible to affiliates.

I am an affiliate

Links with sub-IDs, measured pages, program rules and payouts.

I am a developer

The tracking script, the sale line, server-side tracking and the API for affiliates and AI.

Choose your platform

Every guide follows the same three steps as Setup in the dashboard: choose a platform, install, test tracking.

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 onHow the sale is trackedGuide
ShopifyThe app creates the pixel and your account – no code.Shopify
WooCommerceOur plugin tracks from your own server and reports refunds.WooCommerce
Smartweb, HostedShop, DanDomain, ShoporamaThe tracking code on every page plus a sale code on the order confirmation – the platform fills in the order number and amount.Smartweb, DanDomain Classic, Shoporama
Magento 2, PrestaShop, Shopware 6The tracking code on every page; the sale is read from the platform's own Google Analytics 4 module.Magento 2, PrestaShop, Shopware 6
WebflowThe 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
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
Stripe Checkout and Payment LinksA webhook reports one-off purchases, subscriptions and refunds.Stripe

If you have a developer, 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.

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.

For developers and affiliates

Everything in the docs

Stores17 pages

For AI agents

Every page is also available as Markdown (add .md to the address), and the whole documentation is in one file for your coding assistant.