Skip to content
accs-net.com

Press Esc to close

Affiliate

“Affiliate” lives in two worlds at once. In GA4 ecommerce it is a structured field on the purchase event β€” the affiliation parameter β€” used to tag the marketplace, store, or sales partner attached to a transaction. In marketing, “affiliate” is a partner who promotes your offer for a commission. This guide covers both meanings, shows how to wire the GA4 parameter through the dataLayer, and explains how affiliate traffic differs from a generic referral.

What Is “Affiliate” in GA4?

In Google Analytics 4, affiliate is shorthand for the affiliation parameter β€” a string field on the purchase ecommerce event that identifies where a transaction happened or who drove it. It is one of the official ecommerce parameters documented by Google. Setting affiliation lets you split revenue by store (“Main Site” vs “Amazon Marketplace”), by partner (“Affiliate Network A” vs “Direct”), or by physical location in omnichannel setups.

It is optional. GA4 will accept a purchase event without it. But if you run more than one storefront, sell through marketplaces, or want a clean breakdown of partner-attributed revenue inside GA4 reports, the affiliation field is the cleanest place to put that label.

The affiliation Parameter in GA4 Ecommerce Events

The parameter sits inside the ecommerce object of the purchase event. It is a string with a 100-character limit. You can also set affiliation on individual items in the items array β€” useful when one order contains products from multiple stores or marketplaces.

Where Scope Example value When to use
Event-level ecommerce.affiliation Whole transaction 'Main Store' Single-store or single-channel orders
Item-level items[].affiliation Per product 'Amazon Marketplace' Mixed-source baskets, marketplace mirrors

If both are set, the item-level value takes precedence for that product line in GA4 reports. The event-level value still appears as a transaction attribute under Reports β†’ Monetisation β†’ Ecommerce purchases β†’ Item affiliation.

How to Pass Affiliation Data via dataLayer

The clean implementation is a dataLayer push fired from the order confirmation page after a successful payment. Below is the canonical structure with affiliation highlighted in context:

dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: 'T12345',
    value: 99.99,
    currency: 'USD',
    affiliation: 'Amazon Marketplace',
    coupon: 'PARTNER10',
    items: [{
      item_id: 'SKU123',
      item_name: 'Wireless Headphones',
      affiliation: 'Amazon Marketplace',
      price: 99.99,
      quantity: 1
    }]
  }
});
GA4 affiliation parameter inside the purchase event dataLayer push, shown alongside required parameters (transaction_id, value, currency) and recommended fields (coupon, items)
Where affiliation sits in the GA4 purchase event β€” both at the event level and per-item.

In Google Tag Manager, map a dataLayer variable to ecommerce.affiliation and pass it as an event parameter on your GA4 Event tag. The parameter name in GA4 will be affiliation β€” case-sensitive β€” and shows up automatically in the standard ecommerce reports. No custom dimension is needed for the built-in slice.

Multi-Store / Marketplace Tracking with Affiliate

The affiliation field shines when one GA4 property serves multiple revenue surfaces. Common patterns:

  • Main site + marketplace mirror. Sell on your own domain and on Amazon. Tag the website orders 'Main Site' and the Amazon API-imported orders 'Amazon Marketplace'.
  • Multi-brand house. One company, three storefronts. Tag each transaction with the brand name to compare revenue per brand without splitting the GA4 property.
  • Online + offline. Pipe in-store POS transactions via the Measurement Protocol and tag them 'Retail β€” Store 14'.
  • White-label resellers. Each reseller gets a unique affiliation string so you can audit revenue per partner without setting up dozens of properties.

Heads-up: the affiliation parameter is not the same as source/medium. It describes where the sale happened, not where the click came from. Use UTM parameters for click attribution and affiliation for transaction tagging.

Affiliate Marketing β€” Definition and Models (CPA, RevShare, Hybrid)

Outside GA4, “affiliate” means a partner β€” a publisher, influencer, comparison site, or coupon platform β€” who sends you traffic in exchange for a commission. The commission structure is one of three models, sometimes combined:

Comparison of three affiliate marketing commission models β€” CPA pays a fixed amount per conversion, RevShare pays a percentage of recurring revenue, and Hybrid combines both
Three commission models β€” pick the one that matches your product economics.
  1. CPA (Cost Per Action). A fixed payout for each conversion β€” a signup, qualified lead, or sale. Predictable for affiliate budgeting; favoured by lead-gen and one-off-sale products.
  2. RevShare (Revenue Share). A percentage of revenue, often recurring. Common in SaaS, subscription, and long-LTV verticals where the partner shares in the customer’s lifetime value.
  3. Hybrid. A smaller fixed CPA plus a smaller revenue share. Reduces upfront partner risk on hard-to-acquire users while keeping recurring upside.

Tracking Affiliate Conversions in GA4 (UTM + affiliation parameter)

Affiliate conversion tracking needs two pieces working together: click attribution on the way in, and transaction tagging on the way out. UTMs and the affiliation parameter solve different halves of the problem.

Concern Tool Where it lives
Which partner sent the click? UTM parameters on the partner’s link Acquisition reports, session source/medium
Which store/partner closed the sale? affiliation on the purchase event Monetisation β†’ Item affiliation
Was the click β†’ sale chain unbroken? First-party cookies + GA4 attribution model Advertising β†’ Attribution

A practical pattern: tag every partner link with utm_source=<partner-slug>&utm_medium=affiliate&utm_campaign=<program>, set medium=affiliate as a custom channel group, and pass the partner slug into affiliation on the resulting purchase event. The two views β€” acquisition by partner and revenue by partner β€” then reconcile cleanly. For revenue-tying details see tying revenue to traffic.

Common Affiliate Networks and How to Tag Their Traffic

Each major network exposes click parameters you can rewrite into clean UTMs at the landing page or via a tag. A quick reference for the largest networks:

Network Native click ID Suggested UTM mapping
Amazon Associates tag= utm_source=amazon&utm_medium=affiliate
Impact irclickid utm_source=<partner>&utm_medium=affiliate
CJ (Commission Junction) cjevent utm_source=cj&utm_medium=affiliate
ShareASale sscid utm_source=shareasale&utm_medium=affiliate
Awin awc utm_source=awin&utm_medium=affiliate
PartnerStack / FirstPromoter ref= or fpr= utm_source=<partner>&utm_medium=affiliate

Standardise utm_medium=affiliate across every program. That single rule lets you build one channel group, one report, and one revenue-by-partner pivot β€” instead of chasing dozens of bespoke source values.

Affiliate vs Partner vs Referral β€” Distinctions

The three terms overlap in casual use but mean different things in analytics. Mapping them to GA4 correctly avoids double-counting and keeps the channel report honest.

Term Definition GA4 mapping Example
Affiliate Paid partner who earns a commission per conversion medium=affiliate on the click + affiliation on the purchase Coupon site sends a buyer; they earn 10% per sale
Partner Strategic relationship β€” co-marketing, integrations, resellers β€” that may or may not include commission medium=partner or medium=referral; rarely uses affiliation SaaS integration partner co-promotes both products
Referral Any inbound link from another site, paid or unpaid Auto-detected as medium=referral when there’s no UTM A blog post links to your homepage, no tracking

The cleanest rule: always tag affiliates with UTMs so they never fall back into the generic referral traffic bucket. An untagged affiliate looks identical to an organic blog mention, and you lose the ability to credit (or audit) the partner.

Frequently Asked Questions

What is affiliate in Google Analytics?

It is the affiliation string parameter on the GA4 purchase event β€” used to tag the store, marketplace, or sales partner attached to a transaction. It appears in Monetisation β†’ Ecommerce purchases β†’ Item affiliation.

How do you track affiliate sales in GA4?

Two layers. Tag every partner link with utm_medium=affiliate for click attribution, and pass the partner identifier into affiliation on the resulting purchase event for revenue attribution. The first answers “who sent the click”, the second answers “who closed the sale”.

What is the affiliate parameter in ecommerce?

A string field (max 100 characters) that identifies the marketplace, store, brand, or sales partner for a transaction. Available at the event level (ecommerce.affiliation) and per item (items[].affiliation). When both are set, the per-item value wins.

Affiliate vs source/medium in GA4 β€” what’s the difference?

source/medium describe where the click originated (acquisition). affiliation describes where the transaction happened (monetisation). They answer different questions and live in different reports β€” use both, not one or the other.

Does GA4 have a built-in affiliate report?

Yes. Out of the box, Reports β†’ Monetisation β†’ Ecommerce purchases includes an Item affiliation dimension. No custom dimension setup is required if you populate affiliation on the purchase event.

What does “affiliate” mean if I don’t sell anything?

For lead-gen or content sites, the marketing meaning still applies β€” a partner who drives signups for a fee. The GA4 affiliation parameter only matters if you fire purchase events, so for non-ecommerce flows, partner attribution lives entirely in UTM tagging.

Can I use affiliate tracking without GA4?

Yes. Most affiliate networks (Impact, CJ, Amazon Associates) run their own pixel-and-cookie tracking server-side. GA4’s affiliation field is complementary β€” it gives you a unified revenue view inside your own analytics, independent of network dashboards.

  • CPA β€” fixed payout per conversion, the most common affiliate model
  • Conversion β€” the action that triggers the affiliate payout
  • Purchase event β€” where the affiliation parameter lives
  • UTM β€” parameters for click attribution on partner links
  • Source β€” where the click originated
  • Medium β€” channel category, set affiliate for partner traffic
  • Referral traffic β€” generic inbound, what untagged affiliates fall into
  • Attribution model β€” how GA4 splits credit across touchpoints
  • Cookie β€” how partner clicks persist to the conversion
Tom Martin
Written by

Tom Martin

Web analytics specialist with deep expertise in Google Analytics, Tag Manager, and e-commerce tracking. Helping businesses understand their data without the noise β€” practical guides, honest reviews, and real-world implementation experience.