AnyTrack

PLAYBOOK

Track Affiliate Commissions in Google Analytics 4

Your commissions live in network dashboards, and GA4 shows sessions with zero revenue. This playbook streams every payout into Google Analytics 4 server-side, attributed to its true source, so your reports and audiences finally run on real earnings.

Affiliate Offer
Outbound clicks AutoTagged with the click ID
arrow-down.svg ui
logo-alt.svg ui
AnyTrack
Postbacks matched, enriched, attributed
arrow-down.svg ui
Google Analytics 4
Commissions streamed server-side
arrow-down.svg ui
Google Ads
Audiences retarget the offer-clickers
↺ Offer-clickers come back through Google, and GA4 shows what they earn
Playbooks / Track Affiliate Commissions in Google Analytics 4

Open GA4 and you’ll see everything except the money. Sessions, engagement time, top pages: all there. Revenue: zero, because the sale happens on the merchant’s site and the commission lands in a network dashboard GA4 has never heard of. So you’re running a content business on two half-reports, guessing which pages, sources, and campaigns actually pay the bills.

  • GA4 revenue reads $0: the conversion happens after the redirect, on a domain you don’t own, so your analytics never records a purchase.
  • The redirect blackout hides your winners: the network reports the payout with no idea which page, channel, or campaign sent the buyer.
  • Audiences can’t build on money events: you can’t retarget offer-clickers or exclude buyers when GA4 doesn’t know who clicked out and who converted.

This playbook closes the loop. AnyTrack AutoTags your offer links, tracks every outbound click, matches each network postback to the click that earned it, and streams the whole journey into Google Analytics 4 server-side, payout values and traffic source included.

Outcomes What This Playbook Unlocks
roas-tracking.svg features
EPC by source
Payouts land next to sessions in GA4, so you read earnings per click for every channel, campaign, and page.
party-data.svg features
Offer-clicker audiences
Visitors who clicked an offer but never earned you a payout become a GA4 audience your linked Google Ads account can retarget.
data-orchestration.svg features
One revenue view, every network
Commissions from all your networks stream into one GA4 property, deduplicated and attributed to their true source.
How it works

The Journey of a Tracked Conversion

Follow one reader from your page, through the offer link, to a commission reported in GA4 with its source attached. Every step streams automatically.

logo-alt.svg ui
Session Started
Source & UTMs recorded, paid or organic
AnyTrack Click ID generated & first-party data collected
Links & forms AutoTagged with the Click ID
logo-alt.svg ui
Outbound Click
AutoTracked by the Tag, no code needed
Offer URL & link text collected
In the Conversions Report in real time
Sent to GA4
Conversion Triggered
Affiliate Network
Postback returns click ID & payout
Payout & currency normalized
Rebills arrive the same way
Sent to
logo-alt.svg ui
AnyTrack
logo-alt.svg ui
Conversion Tracked
Matched to the session by the AnyTrack Click ID
Deduplicated & enriched
Attributed & reported in the AnyTrack Dashboard
Sent to GA4
Measurement Protocol
Conversion data + first-party data
Audiences build from each event & its value
Attributed per your attribution settings & window
Audience Updated
GA4 audiences fill as events land
Offer-clickers retargeted across Google
Buyers drop out automatically

Steps marked with the AnyTrack node run automatically. No extra code, no manual tagging.

Example Scenario

You run a review site promoting offers across two networks, with traffic arriving from SEO, an email list, and some paid tests. The networks report commissions in their own dashboards, and none of it connects back to a page or source. You want GA4 to show earnings per channel and per article, plus audiences of offer-clickers your linked Google Ads account can work with.

Prerequisites Before You Begin
  • An AnyTrack account on Starter or above (server-side integrations require a paid plan)
  • An affiliate network that can fire a server-to-server conversion postback with your own subid (Impact, ClickBank, MaxBounty, Everflow, and most CPA networks can)
  • An active Google Analytics 4 property with admin access
  • Your own content or presell pages where you can install the Tracking Tag

Step 1: Install the Tracking Tag

Paste the Tracking Tag before </head> on your site. From the moment it loads, AnyTrack AutoTags every outbound offer link with a fresh click ID, carried to your network as a subid, and tracks each click as an OutboundClick event tied to the session’s source and UTM parameters. Organic reader, email subscriber, or paid click: every session carries its origin with it.

Check the subid in seconds

Hover an offer link on your page: the subid should already carry a click ID. If it doesn’t, the payout can’t find its way back to the page that earned it.

Step 2: Connect Your Affiliate Network

In the AnyTrack Integration Catalog, install your network’s integration and copy the postback URL it gives you, then paste that URL into your network’s postback or server-to-server settings. AnyTrack pre-fills the subid parameters: s1 carries the click ID that matches each conversion back to its session. Send these values on the postback:

  • click_id (as s1): the match key that ties the commission to the page and source that earned it.
  • transaction_id: the network’s unique order ID, so a retried postback doesn’t double-count.
  • payout and currency: the numbers your GA4 revenue reports will run on.

Most networks have a pre-built template. If yours isn’t in the catalog, follow the Custom Affiliate Network guide to wire the same postback by hand. ClickBank users have a dedicated flow in the ClickBank integration. Repeat for each network you promote; every one streams into the same property.

Test conversions need the click ID

A network test conversion only tracks if it passes the click ID back through the subid. Plan on one real qualifying sale to confirm the loop end to end.

Step 3: Connect Google Analytics 4

Follow the Google Analytics 4 setup to connect your property from the Integration Catalog: select your Google account, your GA4 property, and its web data stream, then turn on the Server-Side Tracking API and map your events. Map Purchase at minimum, and map OutboundClick too; it’s the intent signal your audiences will build on.

AnyTrack streams each mapped event through the Measurement Protocol, server-side, enriched with attribution data, UTM source, and campaign before it leaves. Your existing GA4 tag stays where it is; this stream adds the conversions and payout values browser tracking never sees.

The division of labor is worth being clear about: your AnyTrack dashboard stays the near real-time source of truth for payouts and matching, while GA4 becomes the analysis layer, where commissions sit inside the acquisition reports, segments, and audience tools you already use.

Same-day proof

Watch events arrive in GA4’s DebugView in under a minute, or the Realtime report within a few. Standard reports take 24 to 48 hours to reflect complete data, so judge the setup in DebugView, not tomorrow’s dashboard.

Step 4: Mark Key Events and Build the Audiences

Two switches turn the stream into reports and retargeting pools.

First, in GA4, open Configure → Events and toggle Mark as key event on Purchase. Key events surface as conversions across GA4’s reporting, which puts commission revenue next to sessions in your acquisition reports: earnings per source, per campaign, per landing page.

Then open Admin → Audiences and create the pools:

  • Offer-clickers: visitors with an OutboundClick event but no Purchase. They chose an offer and stalled at the merchant; the warmest traffic you own.
  • Buyers: anyone with a Purchase event. Build it for exclusions, so you stop paying to re-win a commission you already earned.

Create audiences before you need them

GA4 audiences fill going forward from creation. Set them up now, before scaling any traffic source, and give them a day or two to accumulate members.

Step 5: Launch the Campaign Stack

Running on SEO and email alone for now? Steps 1 through 4 stand on their own: you still get revenue per page and source in GA4, and the audiences quietly accumulate until you’re ready to spend. When you are, link your GA4 property to Google Ads and both audiences appear in the shared library automatically. Two campaigns put them to work. And if you want Google’s bidding itself optimizing on commissions, that’s its own play: run this playbook’s sibling, Track Affiliate Commissions Back to Your Google Ads Campaigns, on the same setup.

Retargeting: recover the offer-clickers

The redirect blackout used to swallow these readers. Now they’re a pool.

  • Destination: the review or comparison page for the offer they clicked, with Auto-Tag enabled and AnyTrack’s UTM tracking template in the account-level tracking template, so the return visit is attributed like the first.
  • Budget: start small, 10 to 15% of whatever you spend filling the pool. The audience size is the ceiling; scale with it, not ahead of it.
  • Audience: the offer-clickers audience on Display and YouTube, with buyers excluded everywhere.
  • Event tracking: fed by the OutboundClick events AnyTrack streams into GA4; generates the second-chance Purchase postbacks that pull each buyer out of the pool automatically.
  • Conversion objective: your Purchase key event, so the campaign reports recovered commissions instead of clicks.

Search: bid up the warm readers

Offer-clickers don’t stop searching after they stall. Meet them on the next query.

  • Destination: your best-EPC page for the offer’s niche, same tracking template at the account level.
  • Budget: fold into your existing Search spend; this is a bid adjustment, not a new line item.
  • Audience: layer the offer-clickers audience onto your Search campaigns as an observation audience with a positive bid adjustment, and keep the buyers audience as an exclusion.
  • Event tracking: runs on the same OutboundClick and Purchase stream; every payout the campaign produces arrives in GA4 attributed to it.
  • Conversion objective: the Purchase key event, so warm-reader clicks justify their premium in commissions, not traffic.

The Optimization Loop

The stream never idles. Every outbound click a reader triggers updates the offer-clicker pool, every postback that comes home lands in GA4 with its payout and source attached, and every buyer quietly moves from your retargeting audience to your exclusion list without a spreadsheet touched. AnyTrack matches and streams as each event happens; GA4 folds the data in on its own rhythm, near-instant in DebugView, complete in standard reports within a day or two. The result compounds while you sleep: pages keep reporting what they earn, pools keep sorting themselves sharper.

Your job is a weekly reading:

  1. Measure. Open GA4’s traffic acquisition report with Purchase revenue in view: earnings per source, campaign, and landing page, every network combined. Cross-check the network integration’s Event Log in AnyTrack to confirm every payout arrived and matched.
  2. Improve. Feed the pages and sources with proven EPC: more internal links, more email sends, more budget. Pause promotions with plenty of OutboundClick and no payouts; the offer is the problem, not the page. Tighten or widen the offer-clicker window as the retargeting pool runs hot or thin.
  3. Expand. A page with proven EPC earns a second offer test, and a niche with proven commissions earns a new article cluster. As volume grows, split the offer-clicker pool into tiers by recency, and let the freshest clickers carry the strongest bids.

GA4 finally answers the affiliate question that matters: not “where does my traffic come from?” but “where does my money come from?” The loop above keeps sharpening that answer week after week.

Wrapping Up

Here’s what you shipped:

  • Every outbound offer click tracked with its source, and every commission matched back to the page that earned it.
  • Payouts from all your networks streaming into one GA4 property, server-side, with values and attribution attached.
  • Offer-clicker and buyer audiences that fill themselves, wired into your linked Google Ads account.
  • A weekly loop that reads one report and moves effort toward the pages, sources, and offers that pay.

The networks still count your money. Now your analytics does too.

Ready to Feed Your Ad Platforms Better Data?

One Tracking Tag. Every conversion signal, sent server-side to every platform you run. Set up this playbook in under an hour.

14-day free trial · No credit card required