How to track clicks without cookies (and still match every sale)
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
Cookies keep getting less reliable. How do you track clicks without them, and still match every sale?
The click hits your tracker's server, which records it during the redirect. It creates a click ID and passes it to the network in a sub-ID. The network reports the sale by postback, API or report, and the ID comes back with it. You match it to the click. The visitor's browser stored nothing.
Matching a sale to its click still works, from the click ID. But you lose memory of a visitor across days, so unique counts become estimates. And first-touch data needs another method.
What you control is making sure every click the network does credit comes back to you with your ID.
Hoplytic records each click on the server in about two milliseconds, and never stores IP addresses. The optional site script sets no cookies.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- A click can be counted on the server during the redirect, so the visitor's browser never needs to store anything for the click to be recorded.
- The sale is matched by a click ID that travels in the URL and comes back in a postback, API sync or report, not by a cookie in the visitor's browser.
- Cookies still matter on the merchant's side, where the network decides whether a purchase counts, but that part is out of your hands either way.
- Without cookies you lose cross-session memory of a visitor, so unique counts are estimates and first-touch data needs another method.
Browsers keep making cookies less reliable: shorter lifetimes, blockers, private modes, in-app browsers that forget everything. The good news is that click tracking never really needed them. Here is how cookieless tracking works and where its limits are.
Short answer: record the click on your server during the redirect, give it a click ID, and pass that ID to the affiliate network in a sub-ID, like ?aff_sub=c7f3a9e1. When the network reports the sale by postback, API or report, the ID comes back and you match it to the click. The visitor's browser stores nothing for any of this.
Where cookies used to do the work
Older tracking setups leaned on cookies in two places:
- Counting: a cookie marked a visitor so repeat clicks weren't counted as new people.
- Matching: a tracker cookie set at the click was read again by a pixel on the thank-you page, so the sale could be tied to the click.
Both break more often now. Safari limits how long cookies set by scripts last (seven days at most under its Intelligent Tracking Prevention), and blocks third-party cookies entirely. Firefox partitions them by site. Ad blockers drop tracking pixels. In-app browsers on social apps often start fresh every time. A pixel that depends on a cookie from a different domain misses sales it should catch.
How cookieless click tracking works
- The click hits your tracker. The tracking link points to your tracker's server, which receives the request and records what it can see: time, country (from the IP), device and browser (from the user agent), referrer and every URL parameter, such as an ad platform's macros.
- The tracker creates a click ID, for example
mi2k8z0f3x7q9a, and redirects the visitor to the affiliate link with that ID in the network's sub-ID slot. - The network stores the ID with its own click. Whatever the network does to credit the sale, your ID rides along.
- The sale comes back with the ID: a postback the network fires to your tracker, an API the tracker polls, or a report you upload.
- The tracker matches the ID to the click and now knows which ad, page, placement and country earned that commission.
The visitor's browser stored nothing from you at any step. That's why this method keeps working through private windows, blockers and new browser rules. The S2S vs pixel guide compares it with the cookie-and-pixel method in more detail.
What you lose without cookies
Cookieless doesn't mean nothing changes. Be clear about the trade-offs:
| Question | With a cookie | Without |
|---|---|---|
| Was this click recorded? | Yes | Yes |
| Which click made this sale? | Yes, if the cookie survived | Yes, from the click ID in the sale |
| Is this the same person as yesterday? | Often, until the cookie is cleared | Not reliably |
| Where did this visitor first come from, before they reached my page? | Often | Only if the value is carried forward another way |
Counting unique visitors
Without a cookie, a tracker can still group repeat clicks within a short window by combining signals it already has, for example a one-way code built from the IP and user agent that changes every day. That gives sensible "people per day" counts without storing anyone's IP. It's an estimate: two people on one office network can look like one, and one person switching from Wi-Fi to mobile data can look like two.
Carrying values across pages
If someone lands on your review page from a Google ad and clicks an affiliate link two pages later, the ad's gclid is no longer in the URL. Two cookieless ways to keep it: pass it along in your own internal links, or have a small script on your site keep it in your site's own browser storage until the outbound click. That storage is first-party and on your own domain, which browsers treat far more kindly than a third-party cookie, but it is still storage on the visitor's device. Also note that Safari removes some known ad click IDs from URLs in private browsing and in links opened from Mail and Messages, so even URL-based values can go missing in those cases.
The part you can't make cookieless
Whether a purchase counts is decided by the network and the merchant, not by you. Many networks still set their own cookie when your visitor passes through, often alongside server-side methods of their own. If that cookie is blocked and the network has no fallback, the sale may never be recorded, and no tracker on your side can fix that. What you control is making sure every click that the network does credit comes back to you with your ID. The how affiliate tracking works guide shows the full chain.
Privacy: less stored, still processed
Server-side click logging stores nothing in the browser, but it still processes data about the visitor: an IP address arrives with every request, and country and device are worked out from it. Good practice:
- Don't keep raw IP addresses longer than you need them.
- Don't put emails, names or phone numbers in sub-IDs or URLs. They end up in other companies' logs.
- Mention link tracking in your privacy policy.
- Check what consent you need with someone who knows the rules where you and your visitors are. This guide is not legal advice.
How Hoplytic does it
Hoplytic records each click on the server during the redirect, which takes about 2 ms, and puts its click ID in the network's sub-ID slot. Sales come back by postback, hourly API sync or report upload. People's IP addresses are never stored: repeat clicks are grouped with a one-way code that changes daily. The optional site script sets no cookies; it keeps ad click IDs and UTM values in your site's own browser storage for 7 days so they reach the outbound click. Details are in the site script help.
Questions people ask
Can you track link clicks without cookies?
Yes. A tracking link is a redirect, so the click is recorded on the server when the request arrives, before the visitor is sent on. Nothing has to be stored in the browser.
How are sales matched without cookies?
Your tracker creates a click ID, passes it to the affiliate network in a sub-ID, and the network returns it with the sale by postback, API or report. The tracker looks up the click by that ID.
Does cookieless tracking mean I don't need a privacy policy?
No. Logging clicks still processes data about visitors, such as their country and device. Mention link tracking in your privacy policy and check your obligations with someone who knows the rules where you operate.
Do affiliate networks still use cookies?
Many still set a cookie on their own domain or the merchant's to credit the sale, often alongside server-side methods. That decides whether the network pays, and you don't control it.
More in Tracking fundamentals
Also: tracking glossary · ad platform macros · Markdown copy