Affiliate Commission Tracking Without Losing Credit: Cookies, Sub-IDs and Reconciliation

Source Code Lab Source Code Lab
Published
0 mins read
Affiliate Commission Tracking

Affiliate Tracking Without Lost Credit

We build affiliate tracking for iGaming operators and platforms: cookies, sub-IDs and reconciliation that attribute every player to the right partner and make commission statements match your records.

Two trucks are on a wet road at night, with one truck dumping casino chips and a roulette wheel, and text overlays related
3 layers
Cookies, sub-IDs and reconciliation
The problem

Where Affiliate Credit Goes Missing

Most lost commission is not fraud or a bug in one place, it is small gaps between click, registration and payout.

01

Cookies Fail Before the Player Converts

A player clicks a partner link, leaves, and comes back days later on another device or in a browser that cleared storage. The cookie is gone, the registration lands as organic, and the partner who sent the player is not paid.

02

Sub-IDs Vanish in Redirects

Partners tag clicks with sub-IDs to see which campaign or creative worked. Redirects, landing pages and registration forms drop those parameters, so the report shows traffic with no source and the partner cannot optimise.

03

Statements Disagree with Partner Records

The partner's numbers do not match yours, and nobody can say which player or event caused the gap. Finance and affiliate managers trace rows by hand, disputes drag on, and trust in the programme drops.

What you get

What We Hand Over for Affiliate Commission Tracking

Each item below is delivered as working configuration or code plus the documentation your team needs to run it.

~/sourcecodelab/affiliate-tracking
✓
Click and Cookie CaptureA tracking layer that records the affiliate click, sets the cookie and stores a first-party click ID against the visit.
✓
Sub-ID SchemaA written sub-ID structure that lets each affiliate tag campaigns, creatives and traffic sources, with validation rules for the values.
✓
Server-to-Server PostbacksPostback endpoints for registration, deposit and other events, so credit does not depend on the browser surviving the journey.
✓
Attribution RulesA documented rule set for last click, overlapping cookies, expired cookies and players who return through another channel.
✓
Commission Rule SetupConfigured commission plans per affiliate, covering how each event turns into a payable amount.
✓
Reconciliation ReportsReports that compare tracked clicks and events with player and transaction records, with mismatches listed line by line.
✓
Dispute and Audit LogA record of every manual adjustment and affiliate dispute, with who changed what and why.
✓
Runbook and HandoverDocumentation for your operations and affiliate teams on testing links, reading reports and fixing lost-credit cases.
Investment
Fixed price after a scoping call
How we work

Ways to Engage on Tracking and Reconciliation

Choose the model that matches how much of the tracking stack you already have in place.

AUDIT

Tracking Review

  • Review of your current cookie, sub-ID and postback flow
  • List of where credit is being lost
  • Written fixes in priority order
  • No build work unless you ask for it
Suits operators who already track affiliates and suspect leaks.
SUPPORT

Ongoing Tuning

  • Regular review of reconciliation mismatches
  • Updates when partners or traffic sources change
  • Help with affiliate disputes
  • Changes to commission rules on request
Suits operators with a live programme and no spare engineering time.
Capabilities

What the Tracking Layer Covers, from Click to Statement

Each part is built so a conversion can be traced back to the click that earned it.

Capture

Click ID Storage

Every click gets a unique ID, kept in a first-party cookie and passed to the player record at registration.

Sub-ID Passing

Affiliates add their own sub-IDs to links, so campaigns, placements and sources stay separate in reports.

Postback Fallback

When a cookie is blocked or expires, a server-to-server postback can still tie the event to its click.

Attribution

Attribution Rules

Set first-click or last-click logic and how long a click stays valid for credit.

Duplicate Checks

Repeat sign-ups and self-referrals are flagged before commission is calculated.

Commission Plans

CPA, revenue share and hybrid deals can sit side by side, each applied to the right affiliate.

Reconciliation

Event Matching

Registrations, deposits and wagering from the platform are matched back to tracked clicks.

Dispute Trail

Every credited or rejected conversion keeps a log that managers and affiliates can check.

Adjusted Statements

Chargebacks and reversals appear as separate lines, so a statement can be checked against its source events.

Standards

The Tracking Methods This Service Relies On

Credit is protected by combining several signals, so no single one is a point of failure.

First-party cookies

Store the click ID on your own domain for later matching.

Server-to-server postbacks

Report conversions between systems when browser cookies are missing.

Webhooks

Push registration, deposit and reversal events into the tracker as they happen.

REST API

Exports reconciled conversions and commission data to reporting and payout tools.

Data and rules

Tracking That Stands Up to Audit and Privacy Rules

Commission data is financial data and player data at once, so the tracking setup is built to meet the rules that apply to both.

Cookie consent

Consent Before a Cookie Is Set

Tracking cookies and click identifiers are set in line with the consent rules of each market the operator serves, such as GDPR and ePrivacy where they apply. Where consent is refused, the setup falls back to server-side matching that does not depend on a browser cookie.

GDPR

Minimal Personal Data in Affiliate Flows

Sub-IDs and click IDs are designed to carry a reference, not a name, email or any other personal detail about the player. This keeps affiliate partners from receiving more player data than the commission calculation needs.

Audit trail

Every Commission Line Can Be Traced

Each payout is linked back to the click, the registration, the deposit and the rule that produced it. Finance and compliance teams can check a disputed amount without rebuilding it by hand.

Licence terms

Attribution Rules That Match the Licence

Commission models, bonus costs and affiliate marketing limits differ between licensed markets. The tracking logic is configured so that payouts follow the terms the operator has set for each jurisdiction.

How we work

From First Click to Reconciled Payout

The work moves from mapping how credit is lost today to proving that the numbers match at month end.

01

Map the Journey

We trace how a player moves from affiliate link to registration to deposit, and note where cookies, redirects or devices break the chain. This shows where credit is currently lost.

02

Design the Identifiers

We define the click ID, the sub-ID structure and the rules for how they pass through landing pages, apps and the registration flow. Each affiliate and campaign gets a clear, consistent key.

03

Build and Connect

The tracking is wired into the platform, with server-side postbacks alongside cookies so attribution does not depend on one browser. Events such as registration, first deposit and net revenue are sent to the affiliate

04

Test Attribution

We run test journeys across browsers, devices and consent choices, and compare what was recorded against what should have been. Gaps are fixed before real payouts depend on them.

05

Reconcile and Report

Affiliate-reported figures are matched against platform records on a regular cycle, and differences are flagged with the reason. Disputes can then be settled from the data instead of from memory.

✓

At each stage you get a written output you can review, from the journey map to the identifier scheme to the reconciliation report.

FAQ

Affiliate Commission Tracking: Common Questions

Plain answers on cookies, sub-IDs and reconciliation for operators and affiliate managers.

How do affiliates lose credit when tracking relies on cookies?+

Credit is lost when the cookie that links a click to a player is missing or overwritten at registration. Browsers can clear or restrict cookies, players switch devices between click and sign-up, and a later click from another source can replace the first. Each of these breaks the link between the affiliate and the account.

What is a sub-ID in affiliate tracking?+

A sub-ID is an extra parameter an affiliate adds to a tracking link to label a campaign, placement or traffic source. It lets the affiliate see which of their own channels produced a player. When your platform stores the sub-ID with the click and the account, it can be passed back in reports and postbacks.

What does reconciliation mean for affiliate commissions?+

Reconciliation is comparing the clicks, registrations, deposits and revenue the affiliate sees with what your platform recorded, then resolving the differences. It usually runs on a regular cycle before commission is paid. The goal is that both sides agree on which players belong to which affiliate and what each was worth.

Why do affiliate reports and operator reports show different numbers?+

The two sides often count different things at different times. One may record a click or registration while the other waits for a verified deposit, and time zones, currencies and refunds can move events between periods. Agreeing definitions for each event in advance removes many disputes before reconciliation begins.

Is server-to-server tracking better than cookies alone?+

Server-to-server tracking is usually more reliable because the conversion is reported between systems rather than depending on the player's browser. It still needs a click identifier saved at sign-up so the event can be matched. Many operators keep cookies as the capture method and use postbacks to confirm what happened afterwards.

How should a click identifier be linked to a player account?+

Store the click identifier and any sub-ID against the player record at registration, and keep it unchanged afterwards. Later deposits, bets and revenue can then be traced to the original source. Decide in advance which click wins when a player arrives from more than one affiliate, and write that rule down.

Can Sourcecodelab help with affiliate tracking on an iGaming platform?+

Sourcecodelab is a B2B platform provider for iGaming, so the best next step is to describe your setup and requirements through the contact page. We can discuss how attribution data would fit with your platform and player accounts. The details depend on your stack and your commission model.

Talk to us

Stop Losing Credit on Affiliate Commissions

Tell us how your cookies, sub-IDs and reconciliation work today, and we will show where credit slips between click and payout. You get a tracking setup that matches each commission to the affiliate who earned it.

Book a call
Sourcecodelab builds B2B platforms for iGaming.
Source Code Lab

Source Code Lab

Source Code Lab Editorial Team publishes the latest iGaming news, industry analysis, and insights on iGaming software and platform solutions, including casino platforms, sportsbook technology, and gaming integrations. Visit Source Code Lab for more information.

Location Map

Let's Build Success

From concept to launch, we help build winning gaming platforms. Let's discuss your project.

Blog Form