# Affilyflow > Affilyflow is an affiliate network that connects web shops with affiliates. Stores only pay for sales; affiliates earn on their links. The English documentation covers the technical reference – track.js, the sale line, the Google Analytics route, the conversion API and status codes – and the affiliates' REST API and MCP server. Store setup guides per platform are in Danish (see /llms.txt). All documentation in one file (Danish and English): https://www.affilyflow.com/llms-full.txt - [Everything you need to set up Affilyflow](https://www.affilyflow.com/en/docs.md): Tracking setup for stores, technical reference for developers and an API for affiliates – in one place, written from how the product actually works. ## Get started - [How tracking works](https://www.affilyflow.com/en/docs/start/how-tracking-works.md): How a click on an affiliate link becomes a sale with locked commission – and what happens along the way. - [Getting started as a store](https://www.affilyflow.com/en/docs/start/getting-started-store.md): From a new account to a program affiliates can find – account, price, tracking and a test purchase. - [Getting started as an affiliate](https://www.affilyflow.com/en/docs/start/getting-started-affiliate.md): From account to first payout – create an account, add your sites, find programs, create links and follow your results. ## Stores - [Shopify](https://www.affilyflow.com/en/docs/store/shopify.md): Tracking with the Affilyflow app and a Web Pixel – no code and no changes to your theme. - [WooCommerce](https://www.affilyflow.com/en/docs/store/woocommerce.md): Install our free plugin and paste in your connect code – clicks and sales are tracked from your own server. - [Smartweb and HostedShop](https://www.affilyflow.com/en/docs/store/smartweb.md): Tracking on Smartweb, HostedShop and the new Dandomain Webshop – a script in the design and a sale code in the affiliate field. - [DanDomain Classic](https://www.affilyflow.com/en/docs/store/dandomain-classic.md): Tracking on the older DanDomain engine – the tracking code in the site's code field and the sale code on Bestil step 4 (order step 4). - [Shoporama](https://www.affilyflow.com/en/docs/store/shoporama.md): The tracking code in an HTML field and the sale code in the theme's thanks.html – with the amount excluding VAT and shipping. - [Magento 2](https://www.affilyflow.com/en/docs/store/magento.md): Tracking on Magento 2 and Adobe Commerce via Google Analytics 4 – the tracking code in HTML Head and Magento's own Google Analytics module. No module from us yet. - [Webflow](https://www.affilyflow.com/en/docs/store/webflow.md): The tracking code in the site's Custom code and one line on the Order Confirmation page – no template variables needed. - [PrestaShop](https://www.affilyflow.com/en/docs/store/prestashop.md): Tracking on PrestaShop via Google Analytics 4 – the tracking code in the theme and the official ps_googleanalytics module. No module from us yet. - [Shopware 6](https://www.affilyflow.com/en/docs/store/shopware.md): Tracking on Shopware 6 via Google Analytics 4 – the tracking code in the theme and Google Analytics on the sales channel. The standard confirmation page is read even without Google Analytics. No app from us yet. - [Custom-built store](https://www.affilyflow.com/en/docs/store/custom-built.md): Set up tracking on a store that was built for you, e.g. in Laravel or PHP – without knowing any field names. - [Server-side tracking](https://www.affilyflow.com/en/docs/store/server-side-tracking.md): Let your own server store the affiliate click and report the sale – so tracking holds up on iPhone, in Safari and with ad blockers. - [Stripe](https://www.affilyflow.com/en/docs/store/stripe.md): Track sales from Stripe Checkout and Payment Links with a webhook – one-off purchases, subscriptions and refunds. - [Testing and troubleshooting](https://www.affilyflow.com/en/docs/store/testing-and-troubleshooting.md): Prove that tracking works with a test purchase – and find the cause when a sale doesn't come through. - [Consent and cookies](https://www.affilyflow.com/en/docs/store/consent-and-cookies.md): What tracking stores in the customer's browser, for how long – and how the script can wait for consent to marketing. - [Personal discount codes](https://www.affilyflow.com/en/docs/store/personal-discount-codes.md): A discount code you give to one specific affiliate earns commission – even when the customer never clicked a link. - [Approval and refunds](https://www.affilyflow.com/en/docs/store/approval-and-refunds.md): The approval period, how to reject a sale, and when a refund is corrected automatically. - [Products and feed](https://www.affilyflow.com/en/docs/store/products-and-feed.md): How your products get into affiliates' product search – from your shop or from a Google Shopping or CSV feed. ## Reference - [track.js](https://www.affilyflow.com/en/docs/reference/track-js.md): Complete reference for the tracking script – attributes, JavaScript API, what is stored in the browser, consent and errors. - [The sale line](https://www.affilyflow.com/en/docs/reference/sale-line.md): Report the sale with a single line of HTML on the receipt page – no JavaScript, and Danish amounts are parsed correctly. - [Google Analytics](https://www.affilyflow.com/en/docs/reference/google-analytics.md): Let track.js read the purchase from Google Analytics 4 with data-sale="ga4" – no code on the receipt page. - [Conversion API](https://www.affilyflow.com/en/docs/reference/conversion-api.md): The endpoint that receives sales – for server-side and custom integrations, with parameters, responses and limits. - [Status codes](https://www.affilyflow.com/en/docs/reference/status-codes.md): What each status from the conversion endpoint means – and what to do about it. ## Affiliates - [Links and sub-IDs](https://www.affilyflow.com/en/docs/affiliate/links-and-sub-ids.md): How to create tracking links, deep links to specific products, sub-IDs and HTML that shows the exact page every click came from. - [Page tracking](https://www.affilyflow.com/en/docs/affiliate/page-tracking.md): See exactly which page on your site each click came from – automatically with the HTML snippet, with placement.js or through your own redirect. - [Program rules](https://www.affilyflow.com/en/docs/affiliate/rules.md): Approval period, channels, paid search, coupon sites, what happens if a rule is broken – and how rule changes are announced. - [Payouts](https://www.affilyflow.com/en/docs/affiliate/payouts.md): Automatic payout on the first banking day of the month from DKK 100 – bank details, personal details, self-billing, VAT and what happens with refunds. - [REST API](https://www.affilyflow.com/en/docs/affiliate/rest-api.md): The affiliate API under /api/v1 – keys, limits, every endpoint with parameters and responses, pagination and error codes. - [MCP server](https://www.affilyflow.com/en/docs/affiliate/mcp.md): Connect Claude, ChatGPT, Claude Code or Cursor to your Affilyflow account – setup, sign-in, the 23 tools, prompts and limits. ## Optional - [Danish docs index](https://www.affilyflow.com/llms.txt): Setup guides per platform (Danish)