AI agent
Connect your store to an AI agent
Marketing

Affiliate marketing: how to start an affiliate program for your store

How to start an affiliate program for an online store in the EU: commission models, UTM links and codes, cookie windows, disclosure and VAT on payouts.

The CloudCart team17 min read
An online store window on a desk, linked by fine lines to several small screens showing a blog, a video and a price comparison
In this article · 10 sections
  1. What affiliate marketing is and how it works for an online store
  2. Commission models: percentage, flat fee, per action
  3. How to start an affiliate program: step by step
  4. How affiliate sales are tracked
  5. What a cookie window is and how many days to set
  6. What the law says about affiliate advertising
  7. Taxes and paperwork for partner commissions
  8. Which partners to invite first
  9. Mistakes that make an affiliate program lose money
  10. Frequently asked questions

Affiliate marketing is advertising where you pay a partner only for a sale they brought in. The partner (a blogger, a price comparison site, an influencer or one of your customers) gets a personal link or code, and you pay a commission, usually a percentage of the order value excluding VAT. For an online store, it is a channel where the cost of every order is known in advance.

This guide is for online stores in any EU country that want to run their own affiliate program, whether you sell only at home or across borders. It covers the rules that apply across the EU (ad disclosure, cookie consent, the 14-day withdrawal period and VAT on commissions paid to partners in other member states) and shows how each step works in CloudCart. The tax section is a starting point: your accountant confirms exactly how you pay your partners in your country.

What affiliate marketing is and how it works for an online store

An outside partner recommends your products to their audience and earns a commission on every traceable sale. The affiliate program is the set of rules: how much you pay, for what, when, and how a sale is counted.

There are three parties, sometimes four:

  • The store (the advertiser or merchant). Sets the commission, provides links, codes and creatives, and approves sales.
  • The partner (the affiliate or publisher). A review site, a blog, a YouTube channel, a Facebook page, an email newsletter, a price comparison site or a loyal customer.
  • The shopper. Clicks the link or enters the code and pays no more.
  • The affiliate network (optional). A platform that recruits partners, tracks clicks and pays commissions. Networks are often strongest in particular countries, so pick one that has publishers in the markets you ship to.

With Google Ads and Meta Ads you pay for clicks before you know if a sale will follow. With an affiliate program you pay after an approved order, which suits a store with a clear margin. How to compare the cost with your other channels is covered in ROAS and ROI for an online store.

Commission models: percentage, flat fee, per action

The most common model for an online store is a percentage of the order value excluding VAT and shipping, paid once the return period is over.

ModelWhat you pay forBest forRisk for the store
CPS (cost per sale), percentage% of the order excluding VATMost stores, mixed basket sizesLow: you pay only on a sale
CPS, flat fee€ per order, whatever its valueStores whose products are priced alikeMedium: a small order can lose money
CPA (cost per action)€ per action: sign-up, first orderSubscriptions, first purchaseMedium: you need checks for fake actions
CPL (cost per lead)€ per contact: email, quote requestB2B and expensive productsHigh: the lead may never buy
TiersA higher % above a sales thresholdPrograms with many partnersLow, if tiers count net sales

How to work out the commission you can afford

Your ceiling is the gross profit on the order minus the costs you carry anyway. An example for a VAT-registered store with a 20% VAT rate: average order €60 including VAT (€50 excluding VAT), cost of goods €30, packing and handling €3. That leaves €17 before marketing. A 10% commission on €50 is €5, so €12 stays with you. At 20% only €7 stays, and if the item comes back you lose the shipping too. VAT rates differ between EU countries, so always calculate on the net amount in your own country.

Rule of thumb: keep the commission under a third of the gross profit on your average order. That leaves room for the partner's discount and for tracking errors.

If you sell into several countries, check the margin per market. Shipping to a neighbouring country often costs more than at home, so a partner who brings orders from abroad may need a lower rate or a minimum order value.

How to start an affiliate program: step by step

An affiliate program takes 1 to 2 weeks to launch if you settle the rules first and the tools second.

  1. Work out the commission. Take the average order value and gross margin from your reports and set a % or € per order using the calculation above. Decide whether sale items are excluded.
  2. Write the program terms. What counts as a sale, the approval period, the cookie window, the minimum payout, banned channels (for example bidding on your brand name in Google Ads), how the partner discloses the ad and which countries the program covers.
  3. Choose how you track. UTM links, a personal discount code, an affiliate network script, or a mix. The comparison is in the next section.
  4. Prepare the materials. Photos, short descriptions, current promotions and a product feed for comparison sites. If you sell in several languages, give each partner the materials in the language of their audience.
  5. Invite your first 5 to 10 partners. Start with people who already talk about your products.
  6. Place a test order. Click a partner link, order, and check that the order shows against that partner in your report or in the network. Cancel it after the check.
  7. Approve and pay on a schedule. Once a month approve the orders whose return period has passed and pay against an invoice or another document.
  8. Review results monthly. Sales, average order value, return rate and commission per partner, and per country if you sell abroad.

How affiliate sales are tracked

A sale is credited to a partner in one of three ways: by the link the shopper arrived through (UTM parameters or a network script), by the discount code they entered, or both. A code still works when the shopper has refused cookies or buys on another device, which is why most stores give each partner both a link and a code.

MethodHow it worksProsCons
UTM linkutm_source, utm_medium and utm_campaign in the URLNo extra software, visible in your reports and in GA4Lost if the shopper comes back another way
Personal discount codeEach partner has their own codeWorks without cookies and on any deviceThe code can leak to coupon sites
Affiliate networkNetwork script, cookie for N daysReady pool of partners, reports and payoutsNetwork fee, cookie consent needed

UTM links

UTM parameters are tags at the end of a URL that say where a visit came from. Google Analytics recommends using three of them for every campaign: utm_source, utm_medium and utm_campaign. For a partner the link looks like this: ?utm_source=partner-name&utm_medium=affiliate&utm_campaign=partners-2026. Use lower case and the same spelling for every partner, or reports split into separate rows. If you run one program across several countries, add the market to the campaign name, for example partners-de or partners-it.

In CloudCart, sales by UTM show in Analytics, in the Sales by Source / Medium box: orders are grouped by utm_source and utm_medium, and a click opens them by utm_campaign. The Sales by traffic source (referral) box also shows the site the shopper came from. One thing to know for affiliates: the built-in analytics credits the order to the first visit of the session. If the shopper comes back in a new session a few days later, the order goes to the source of that new visit. For a window of several days, use a code or a network. The Google Analytics 4 and Tag Manager guide shows the same setup in GA4.

301 redirects in CloudCart keep UTM parameters and click IDs (gclid, fbclid and zanpid, used by Awin), so old partner links keep their tracking.

Personal discount codes with Code PRO

For partner codes CloudCart uses the Discount code (PRO) type: one campaign with many codes, each with its own discount, date range, usage limit, per-customer limit, customer groups and region. The region setting lets you limit a code to the countries a partner's audience lives in. The path is Marketing → Discounts → Code PRO campaign → manage codes. For example, ANNA10 gives 10% for 60 days and BLOG15 gives 15% for up to 300 uses.

Code PRO is on the CC Pro and CC Master plans. The generator creates up to 5,000 codes at once on CC Pro and up to 10,000 on CC Master (see the plan comparison), and the codes download as a CSV file you can hand to the partner. On Baby Pack and Starter Pack you use regular promo codes: 3 and 5 code discounts respectively. More ideas for codes are in promo code ideas for an online store, and every discount type is on the CloudCart discounts page.

Affiliate networks and product feeds

Most networks work the same way: they read a product feed from your store and place a tracking script on the order confirmation page. In CloudCart you can publish your own XML feed at a public URL for any network or partner, with all products or a selection by category, brand and tag, updated automatically.

One network also has a ready connection: Profitshare, which works in Bulgaria and Romania, is set up under Apps → XML Feed → ProfitShare. There you switch on the CSV product feed the network reads, enter the advertiser code, the click code, the encryption algorithm and key, and paste the network's script that tracks orders. A wrong key or algorithm stops sales being credited while the feed still generates. The number of products in that feed depends on the plan: 100, 2,000, 7,500 and 10,000 from Baby Pack to CC Master.

The cookie window (also cookie duration) is the period after the click during which a sale counts for the partner. With a 30-day window, if the shopper buys on day 12, the commission goes to the partner. The period is set in your terms or the network's terms. The law does not set it.

Match it to how long your customers think before buying:

  • 7 to 14 days for products up to about €30 that people buy on the spot: cosmetics, accessories, food.
  • 30 days for clothing, shoes, gifts and products shoppers compare.
  • 60 to 90 days for furniture, electronics and expensive purchases where the decision takes weeks.

When the shopper went through two partners, the common rule is last click: the commission goes to the partner clicked last. A code entered in the cart usually takes priority over a link, because it proves intent.

The tracking cookie is stored in the browser only with consent. Article 5(3) of the ePrivacy Directive allows information to be stored on the user's device only after the user has consented with clear information about the purpose, unless it is strictly necessary for a service the user asked for. Every EU country applies this rule through its own law, and an affiliate cookie is not strictly necessary. So the network script has to wait for your cookie banner, and some sales will have no cookie at all. How to set up the banner is explained in cookies and GDPR for an online store.

What the law says about affiliate advertising

A paid recommendation has to be marked as advertising. The Unfair Commercial Practices Directive, applied in every EU country since 12 December 2007, lists in Annex I, point 11 editorial content that a trader paid for without making that clear to the consumer (advertorial) among the practices that are always unfair. The European Commission names affiliate marketing among the advertising that must be disclosed in its Influencer Legal Hub. As the store, you are the trader behind the promotion, so put the rules in writing.

What to put in your program terms:

  • Disclosure. The partner states clearly next to the link, or at the start of the video, that they earn a commission, for example "ad" or "affiliate link", in the language of their audience.
  • Links on websites. Google asks for paid links to carry rel="sponsored" (it also accepts rel="nofollow"), per Google's guidance on qualifying outbound links.
  • Product claims. The partner uses only your descriptions and prices, with no health promises and no discounts that don't exist.
  • Banned channels. Ads on your brand name, coupon sites, emails sent without consent, fake reviews.
  • Consequences. On a breach, the commission for the period is not paid and the partner is removed.

National rules can add details, such as the exact wording of the label, so check the guidance of the consumer authority in the countries where your partners publish. Contracts, disclosure and payment for influencers are covered in detail in influencer marketing for an online store.

Taxes and paperwork for partner commissions

A commission is a payment for a service, so the document and the VAT treatment depend on who the partner is and where they are established. The EU rules come from the VAT Directive: since 1 January 2010, a service supplied to a business is taxed where the business receiving it is established (Article 44), and when the supplier is established in another member state, the business receiving the service pays the VAT (Article 196, the reverse charge).

PartnerDocumentVAT
Company in your country, registered for VATInvoiceThe partner charges your local VAT, which you deduct as input VAT if you are registered
Company in your country, not registered for VATInvoice without VATNo VAT charged
Company in another EU countryInvoice without VAT (reverse charge)The place of supply is your country (Art. 44) and you, as the recipient, account for the VAT at your local rate (Art. 196)
Individual without a companyContract and a record of the amount paidUsually no VAT; the income is taxed under the partner's national income tax rules

The cross-border case catches stores out most often. Under Article 214(1)(d) of the VAT Directive, every business that receives such a service and owes the VAT on it under Article 196 must be identified for VAT. So a small store that is not VAT-registered at home may need a VAT number on that ground alone when it pays a partner or a network invoicing from another EU country. Talk to your accountant before the first payout.

For an individual without a company, the commission is taxable income in the partner's country. Whether you withhold tax depends on national law and the contract, so prepare it with your accountant first. In Bulgaria, for example, the reverse charge sits in Art. 82(2) of the VAT Act and the registration duty in Art. 97a.

When to pay: the return period

Pay the commission once the period in which the shopper can return the goods has passed. Under the Consumer Rights Directive, applied across the EU since 13 June 2014, the shopper has 14 days to withdraw from an online purchase without giving a reason (Article 9), and you refund within 14 days of being told (Article 13). An approval period of 30 days after delivery covers withdrawal, return and refund, and an order returned or cancelled within it earns no commission. If you offer a longer return period than the law requires, set the approval period to match.

Which partners to invite first

The best partners for a small store have an audience that already buys similar products, in the countries and languages you sell in.

Partner typeWhat you give themSuitable model
Review and comparison siteProduct feed, links, banners% of the sale, 30 days
Niche blog or YouTube channelSamples, a personal code, a link% of the sale, higher for the first 3 months
Instagram, TikTok or Facebook profileA personal code with a discount for the audience% or € per order on the code
Loyal customerA personal code for friendsStore credit or % of the order
Price comparison site or catalogXML feedUsually the comparison site's own rules

Customers who already recommend you are the cheapest place to start: give them a personal code for friends after their second order. If you open a new country, a few local bloggers who write in that language usually bring more than a large network with no publishers there. How to keep and reward customers is covered in loyalty programs and repeat purchases.

Mistakes that make an affiliate program lose money

  • Commission on the total with VAT and shipping. You end up paying a percentage of the tax as well.
  • Paying before the return period ends. Every return in the first 14 days becomes a straight loss.
  • One rate for every product. A product with a 15% margin and a 20% commission loses money on every sale.
  • Codes with no limits. An open code reaches coupon sites, and you pay for customers who would have bought anyway.
  • Brand bidding. A partner who runs Google ads on your store's name earns commission on customers who were already looking for you.
  • Ignoring VAT on foreign invoices. A partner invoicing from another EU country leaves the VAT with you, and missing it shows up later in your VAT return.

Frequently asked questions

Affiliate marketing is advertising where a store pays a partner only when the partner brings a sale. The partner shares a personal link or code, and the store tracks the orders and pays a commission, usually a percentage of the amount excluding VAT.

Enough that the order is still profitable after paying it. A good start is a commission under a third of the gross profit on your average order. On a €50 order excluding VAT with €17 profit before marketing, that is up to about €5, or 10%.

Work out the commission, write the terms (window, approval, banned channels, countries), choose UTM links and personal codes or a network, and invite 5 to 10 partners from your niche. Test with one order, then approve commissions monthly after the return period.

It is the period after the click during which a purchase counts for the partner, for example 30 days. You set it in your program terms: 7 to 14 days for quick purchases and 30 to 90 days for expensive products. In the EU the tracking cookie needs the shopper's consent first.

Yes. Under the Unfair Commercial Practices Directive, paid content that does not say it is paid is always an unfair practice, in every EU country. The partner clearly writes "ad" or "affiliate link", and links on websites carry rel="sponsored".

The partner issues an invoice without VAT, and you as the recipient account for the VAT at your local rate (Articles 44 and 196 of the VAT Directive, the reverse charge). If your store is not VAT-registered, such a service can require a VAT number under Article 214, so talk to your accountant before the first payout.

Yes. Personal partner codes are made with Code PRO (on CC Pro and CC Master) and can be limited by region, UTM sales show in Analytics, and you can publish an XML product feed for any network or partner. A new store costs €1/month for the first 3 months, with 0% commission on sales.

More on sales channels and store analytics. Questions: support@cloudcart.com.

Sources

  1. Article 5(3) of the ePrivacy Directiveeur-lex.europa.eu
  2. Unfair Commercial Practices Directiveeur-lex.europa.eu
  3. Influencer Legal Hubcommission.europa.eu
  4. Google's guidance on qualifying outbound linksdevelopers.google.com
  5. VAT Directiveeur-lex.europa.eu
  6. Consumer Rights Directiveeur-lex.europa.eu
The CloudCart teamChecked against the platform documentation. Questions: support@cloudcart.com

Build your online store

The first 3 months on every plan are €1/month. Questions: support@cloudcart.com

Create a store for €1