Tracking redirects and tracking domains: 302 vs 301, meta refresh, referrers and speed

November 19, 2026 · Hoplytic team · 3 min read

The short version: this guide in 61 seconds.
Read the video transcript

Which redirect should a tracking link use? It decides whether every click is counted.

Use a three-oh-two redirect on your own tracking subdomain. It's instant, browsers don't cache it, and you can change the destination any time.

A three-oh-one is cached by the browser. Repeat clicks skip your tracker, so they're never counted, and later offer changes never reach those visitors.

Meta refresh and JavaScript redirects are slower. Use them only if you need to change the referrer.

Setup is one DNS record, usually a C name, pointing to the tracker. A good tracker issues the HTTPS certificate for you. On Cloudflare, set the record to DNS only, unless the tracker says proxying is supported.

Hoplytic links answer with a three-oh-two in about two milliseconds on the server. Use the shared domain, or your own subdomain with automatic HTTPS.

The full guide is right below. Hoplytic: ad tracking made simple.

Key points

A tracking link is a redirect with a memory. How it redirects decides whether every click is counted, how fast visitors arrive, and what the next site learns about where they came from.

Short answer: use an HTTP 302 (or 307) redirect on your own tracking subdomain. It's instant, browsers don't cache it, and you can change the destination any time. Avoid 301s for tracking. Use meta refresh or JavaScript redirects only if you have a specific reason to change the referrer.

Redirect types compared

TypeHowCached?ReferrerUse for tracking?
302 Found / 307HTTP header, no pageNoPassed on as normalYes: the standard
301 / 308 PermanentHTTP header, no pageYes, by browsersPassed onNo: repeat clicks skip the tracker
Meta refreshAn HTML page that redirectsNoUsually the tracker's pageOnly to change the referrer
Double meta refreshTwo pages in a rowNoOften blankRarely; some networks dislike it
JavaScriptA page with a scriptNoThe tracker's pageWhen you need to run code first; fails without scripts

Why 301s break tracking

A 301 tells the browser "this address has moved for good". The browser remembers, and next time it goes straight to the destination without asking your tracker. Those clicks are never counted, never get a click ID, and if you change the offer later, returning visitors still go to the old one. Old 301s can stick for a long time.

What the referrer really shows

Since 2020, browsers default to the strict-origin-when-cross-origin policy: when a visitor moves from one site to another, the next site sees only the domain (https://yourblog.com/), not the page. Apps such as messengers and email clients often send no referrer at all. So:

Your own tracking domain

Shared tracker domains (the one every customer's links use by default) carry everyone's reputation. If someone else's spam gets the domain flagged by an email filter, a browser's safe-browsing list or an ad network, your links suffer too. Your own subdomain (go.yoursite.com) fixes that, looks trustworthy, and stays yours if you change trackers.

Setup is one DNS record (usually a CNAME) pointing to the tracker; a good tracker issues the HTTPS certificate automatically. If you use Cloudflare, set the record to DNS only unless the tracker says proxying is supported.

Ad platforms and redirects

Keep chains short

Every hop is another round trip. Tracker → network → merchant is normal; tracker → shortener → another tracker → network → merchant loses visitors on mobile and gives more places for the query string (and your click ID) to be dropped. The redirect checker shows each hop and whether your sub-IDs survive.

On Hoplytic

Links answer with a 302 in about 2 ms on the server, on our shared domain or your own subdomain with automatic HTTPS. Links keep redirecting even at $0 credit for at least 6 months, offers are checked every 30 minutes, and a backup link catches visitors when a destination breaks.

Questions people ask

Does a redirect hurt SEO?

Affiliate links aren't meant to pass ranking signals. Mark them rel="sponsored" (or nofollow) on your pages. Redirect type matters for tracking, not SEO, on affiliate links.

How fast should a tracking redirect be?

A tracker should answer in milliseconds on its server; the visitor's wait is mostly network distance. Each extra hop in a chain (tracker, network, merchant redirect) adds a round trip, so avoid stacking shorteners.

Should I hide the referrer?

Usually there's no need: browsers send only the domain to other sites by default, and many offers want to see a referrer. Hiding it is mainly done to keep a source private, and some networks treat blank referrers as suspicious.

More in Tracking fundamentals

Also: tracking glossary · ad platform macros · Markdown copy