Shopify
Tracking with the Affilyflow app – a Web Pixel and orders from Shopify's server, no code in your theme.
- Setup
- about 3 min
- Tracking via
- The app: Web Pixel and Shopify’s server – no code
- You need
- Access to install apps in your Shopify admin
What the integration reports
- SalesYes
- RefundsYes – needs order access
- Personal discount codesYes – needs order access
On Shopify, tracking runs through the Affilyflow app. The app turns tracking on with a Web Pixel and receives orders from Shopify's server, so you never touch your theme's code, and changing theme breaks nothing.
Install the app from the Shopify App Store: apps.shopify.com/affilyflow.
How the app works
- No code. The app is the whole installation – no scripts in the theme and nothing to type in.
- Your account. Installing the app creates your Affilyflow account for you. If you already have an account, you connect it in the app with a six-digit code from the dashboard.
- Your price. You choose the commission in the app.
- The test link. In the app you create a real tracking link to your own shop and go through the click, the purchase and the recorded sale yourself. The test sale costs nothing and is credited to a system account, so your affiliate figures are not affected.
- Currency. Sales in any currency with a daily ECB exchange rate are recorded and converted to Danish kroner at the rate at the time of the sale. Balance, commission and payouts are settled in Danish kroner today.
Orders from Shopify's server
From app version 11-27 (released 14 November 2026), the app has access to orders (read_orders) and receives paid, cancelled and refunded orders directly from Shopify.
- The sale from Shopify's server. The pixel still reports the sale in the browser. Shopify confirms it afterwards, or records it when the pixel didn't get through – for example because of an ad blocker or a closed thank-you page. The same order only counts once.
- The click on the cart. If you turn on Affilyflow tracking under Online Store → Themes → Customize → App embeds, the click id is written to the cart as a hidden attribute once the customer has accepted marketing. The click then follows the order to Shopify's server – also when the customer comes back later, or the pixel is blocked. If the customer declines, the attribute is removed again. It is optional.
- Refunds and cancellations. A full refund or a cancellation rejects the sale automatically. A partial refund lowers the commission proportionally – as with WooCommerce and Stripe. See Approval and refunds.
- Personal discount codes. A code you have given to one affiliate earns commission without a click. Other codes never leave the app in plain text – only as a fingerprint. See Personal discount codes.
- What is sent. For an order that is not an affiliate sale, the app only sends a fingerprint of the order and the time – never amounts, items or the customer's details. The app never reads the customer's name, email, phone number or address.
Consent
The pixel waits for the customer's consent to marketing in your cookie banner – on every install, also those that haven't approved the access to orders yet. Without consent the purchase is not recorded – this applies to every network that tracks in the browser. Nothing is stored in the browser before the customer says yes. With the app embed turned on, the click follows the order to Shopify's server once the customer has said yes – also when they come back later, or the pixel is blocked. This needs the access to orders. See Consent and cookies.
If you already have an account
Connect the account before you choose the commission and make the test purchase:
- Open the app under Apps → Affilyflow in your Shopify admin.
- Press Connect the account on the card at the top – it appears when your website already has an Affilyflow account. Otherwise press Already have an Affilyflow account?. The app opens a page on our site with a six-digit code.
- Enter the code in the app. The app then uses the account you are logged in with, and the account the app created at installation is deleted.
If you skip this, the app creates a separate account for the Shopify store, and your sales and balance end up in two places.
Good to know
- The commission base. Commission is calculated on the goods after discount, excluding shipping and VAT. The VAT is taken out using Shopify's own figures for the order – when the sale is recorded from Shopify's server, exactly, also with several VAT rates.
- Refunds. With access to orders, a full refund or a cancellation rejects the sale automatically, and a partial refund lowers the commission. Without that access, you need to reject a refunded order yourself within the approval period – see Approval and refunds.
- The click id. The affiliate link carries the click id in both
?afid=and the neutral?afy=, because some filter lists removeafid. The app reads both. - Starter credit. Real stores get the starter credit too – we add it to the balance shortly after the app has created the account. Development and test stores don't get it.
- Your profile. If the program description, category or logo is empty, we take it from your website: the description is your own meta description, and the logo is the site's icon. You can change them under Program and Settings in the dashboard.
- Visibility. Your program becomes visible to affiliates once the app has reported that the pixel is active and the program is switched on. A development store is never visible in the catalog.
Missing something?
Write to us – we answer quickly, and the page gets fixed.