Home Guides for Forex & CFD Partners Tracking & Attribution: How Postback URLs, Sub-IDs, and Cookie Windows Actually Work

Tracking & Attribution: How Postback URLs, Sub-IDs, and Cookie Windows Actually Work

Last updated: 1 December 2026 · Reviewed by the Partner Federation partnerships team, with two decades of combined experience in online trading and brokerage partnerships.

Key takeaways

  • Brokers credit referrals using cookie-based tracking, server-to-server (postback) tracking, or both.
  • Forex cookie windows commonly run 60-90 days, but each broker sets its own, so confirm it.
  • Add sub-IDs to your links to see which campaigns convert. If a client doesn’t click your link, a referral code at signup can sometimes still attribute them to you.

Learn it step by step. Professional Module 3 of the free Partner Course covers sub-IDs, postbacks and referral codes, with a tool that shows what lost tracking costs you. Professional opens once you’ve passed Foundation. See the module →

Every commission model on this site (CPA, revenue share, lot rebate, spread share) depends on one thing going right first: the broker’s system has to attribute the client to you. It’s the plumbing under every payment, and most content either skips it or gets it wrong. Here’s how it works.

How partner tracking actually works

Brokers generally use two mechanisms to credit a client to a partner, often side by side: cookie-based tracking and server-to-server (postback) tracking.

Cookie tracking is the familiar one. When someone clicks your tracking link, the broker’s system drops a cookie in their browser with your partner ID. If they complete a qualifying action (registration, deposit, first trade) within the cookie duration, the system finds the cookie and credits you.

The weakness: a cookie lives in the browser, so it can be cleared, blocked, or lost when the client switches device between clicking and signing up. Tap your link on a phone, register later on a laptop, and the cookie isn’t there. Postback tracking closes part of that gap: it doesn’t rely on cookies, so clearing and blocking don’t break it. A device switch can still lose the link, which is why a referral code the client enters at sign-up is worth having too (see below).

Postback (S2S) tracking in plain terms

Postback (S2S) tracking is a server-to-server HTTP callback that confirms a conversion (a registration, a first deposit, a qualifying trade) directly between the broker’s server and the tracking platform, without going through the client’s browser. Nothing has to survive in the browser, so cookie blocking, ad blockers and the tracking prevention built into browsers like Safari don’t affect it.

How it works: your tracking link carries a unique click ID, and the broker’s system stores it at the moment of the click. When the client later registers or deposits, the broker’s server calls a postback URL with the click ID and the event details, something like https://tracking.example/postback?click_id=abc123&event=ftd&amount=500. A real postback usually carries five to ten parameters: click ID, amount, event type, a transaction ID and often one or more sub-IDs.

Where a broker supports it, postback is usually the more reliable half of the pair, because nothing has to survive in the client’s browser between click and conversion.

Sub-IDs: tracking your own traffic sources

A sub-ID isn’t a click ID. It’s a parameter you add to your own link, not something the broker assigns, and it tags which campaign, landing page, ad or source a click came from.

Without sub-IDs, all your traffic looks the same in the broker’s reports: you see total conversions, not which channel produced them. With them, you can compare a paid social campaign, an SEO page and a YouTube video, and back whichever one actually converts instead of guessing.

Sub-ID support and format vary by broker and tracking platform. Confirm what’s supported before you build a multi-channel campaign around a particular format.

The attribution window, how long after a click the broker will still credit you if the client converts, is one of the most important numbers in a partner program and one of the least consistently disclosed.

In forex, 60-90 days is a common window, noticeably longer than faster-converting verticals like iGaming (often 30-60 days). That makes sense: opening and funding a live trading account is a bigger decision than most online purchases. A prospect may spend weeks comparing brokers, checking spreads and trying a demo before funding. A short window can lose you a client who was yours, just because they took their time.

That range is a pattern, not a rule. Each broker sets its own window, and it can be much shorter or longer than 60-90 days. Before promoting a program, ask for its actual window rather than assuming the norm. It’s a two-minute question to the partnerships team, and the answer changes how patient you can afford to be with a piece of content or a campaign.

One window, four clients: who gets credited?

Here’s how one rule plays out in practice. The numbers are made up. Say the program has a 30-day window.

  • Client A clicks your link on day 1 and registers on day 12, on the same browser. That’s yours.
  • Client B clicks on day 1 and registers on day 45. The window has closed, so the link alone probably won’t credit you.
  • Client C clicks on their phone, then registers two days later on a laptop. The window is open, but the laptop never saw your link, so there’s nothing to match.
  • Client D clicks your link on day 1 and another partner’s link on day 5, then registers. Who gets the client depends on the model: first click, last click, or a typed code that overrides both.

Clients C and D are why experienced partners hand out an IB code as well as a link. A code typed at sign-up doesn’t care which device the client used or whose link they clicked last, as long as the broker lets codes take priority. Ask whether it does. Don’t assume.

When there’s no trackable click: manual association methods

Cookies and postbacks both need a click on a trackable link. A lot of real partner traffic doesn’t arrive that way. Someone finds your site through search and goes straight to the broker, a click from a social ad doesn’t survive to registration, or you refer someone by word of mouth. There may be no cookie and no click ID to match, and this is exactly where partners lose commission on clients they did refer.

Brokers handle the “no clean click” case very differently, so check each one rather than assuming one program’s rules carry over:

Referral code or partner ID at signup. Some brokers let the client enter your partner ID, username or referral code during registration, or add it in account settings soon after. That links them to you with no cookie or postback involved. Where it’s offered, it’s the cleanest fallback.

A request through support after registration. Some brokers will link an existing client to you if the client asks support or the partnerships/IB team. It usually only works before the account has generated commission-relevant activity, and it’s entirely the broker’s call.

A brand-new account may be required. Some brokers only link a partner to a newly opened account. If the client already has an account with that broker, it usually can’t be reassigned to you, however the referral happened.

Before you put real time or money into promoting a broker’s program, get a straight answer on attribution without a clean click: what manual options exist, whether an existing account can ever be linked, and exactly what the client has to do. Ask it alongside the wider checks in how to verify a broker’s IB program is legitimate. A broker vague about attribution is often vague about payment too.

Most tracking problems are visible before a single client goes missing. Run these checks on every new link, and again whenever you change how you share it.

  1. Private window. Open the link in a private or incognito window. Your partner ID should still be in the address bar or pre-filled on the sign-up form.
  2. Phone, inside the app. Repeat on a phone, from inside the app you actually share it in: Instagram, TikTok, WhatsApp, Telegram. Their built-in browsers often behave differently from Chrome or Safari.
  3. The final version. If you shorten the link or send it through a redirect, test that version, not the original. Some shorteners strip the parameters that carry your ID.
  4. The right entity. Check the link lands on the broker entity named in your agreement, in the language and country your audience uses. A link to the wrong entity can mean clients you’re not paid for.
  5. A proper test sign-up. Ask your partner manager how to test a registration. Don’t open fake accounts to check: that usually breaks the agreement.

When a client is missing from your report

A client says they signed up through you. They’re not in your portal. From your side, every break in the chain looks the same, so work through it quickly.

  • Wait for the reporting delay first. Many portals update daily or less often.
  • Raise it fast. Many programs only accept manual claims for a short time after registration.
  • Send the basics. Registration date, whether the client used your link or your code, and whatever proof the broker asks for.
  • Protect the client’s data. Share personal details only with the client’s knowledge, and only as privacy law and your agreement allow.
  • Expect a no if they belong to someone else. Brokers rarely move a client already tagged to another partner. The cheapest fix is getting your code entered the first time.

If clients go missing month after month with no explanation, read how to tell if you’re being under-paid.

Seven tracking questions to ask before you sign

  1. How long is the attribution window, in days?
  2. Is it first click or last click?
  3. Does a typed partner code override a link?
  4. Can existing clients who never traded, or stopped trading, be linked to you?
  5. What proof and what deadline apply to a manual claim?
  6. Which broker entities and countries does your link cover?
  7. What can you see in the partner portal, and how often does it update?

Get every answer in writing. If the agreement and the sales conversation say different things, the agreement wins. See the IB agreement explained for where these terms usually sit.

FAQ

What’s the difference between cookie tracking and postback tracking?
Cookie tracking stores your partner ID in the client’s browser after they click, and looks for it when they convert. Postback is a direct server-to-server callback keyed to a click ID, so nothing has to survive in the browser’s cookies. It still can’t follow a client who switches device mid-way; a referral code covers that.

How long do affiliate cookies typically last in forex?
60-90 days is common, reflecting the longer decision time for opening a live trading account. Each broker sets its own window, so confirm it rather than assuming the norm.

What is a sub-ID and why does it matter?
A tag you add to your own link to show which campaign, page or channel a click came from, so you can see which efforts actually convert instead of one combined total.

Can a client be attributed to me without clicking my tracking link?
Sometimes. Many brokers let a client enter your partner ID or referral code at signup, and some accept a request through support after registration, usually only before the account has generated commission-relevant activity. It varies a lot by broker.

Can an existing client account be linked to me after the fact?
Often not. Many brokers only attribute new accounts, and an existing profile generally can’t be reassigned. Confirm with the broker before assuming it can.

Does clearing cookies or using an ad blocker break attribution?
It can break cookie tracking, because the cookie may be deleted or blocked before it’s checked. Postback tracking isn’t affected, which is one reason brokers with better tracking use postbacks alongside, or instead of, cookies.

How do I test my IB tracking link?
Open it in a private window and check your partner ID is still in the address or on the sign-up form. Repeat on a phone from inside the app you share it in, test the shortened version if you use one, and ask your partner manager how to do a test registration. See the five-minute test.

Related terms

Postback (S2S) Tracking · Cookie Duration · Attribution Window · Deep Link · Getting Paid · Verify a Broker’s IB Program Is Legitimate · Metrics That Matter

  • Broker Shaving: How to Tell If You’re Being Under-Paid
  • Risk warning: CFDs, FX and OTC trading products are complex, leveraged products and come with a high risk of losing money rapidly. Most investor accounts lose money when trading. Make sure you understand how these products work and whether you, or any of your clients, can afford to take the high risk of losing money.

    Partner Federation is an independent educational resource. It is not a broker, does not hold client money and does not give investment, legal or tax advice. Figures on this site are typical industry ranges or worked examples, not offers or guarantees of income.