Tracking redirects and tracking domains: 302 vs 301, meta refresh, referrers and speed
November 19, 2026 · Hoplytic team · 3 min read
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
- Tracking links should answer with a 302 (or 307) redirect: fast, uncached, and the destination can change any time.
- A 301 is cached by browsers, so repeat clicks skip your tracker and can't be redirected elsewhere later.
- Meta refresh and JavaScript redirects are slower; they're used to change or hide the referrer, and modern browsers already send only the domain.
- Run links on your own subdomain so a shared domain's reputation can't hurt you and you can move trackers without breaking links.
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
| Type | How | Cached? | Referrer | Use for tracking? |
|---|---|---|---|---|
| 302 Found / 307 | HTTP header, no page | No | Passed on as normal | Yes: the standard |
| 301 / 308 Permanent | HTTP header, no page | Yes, by browsers | Passed on | No: repeat clicks skip the tracker |
| Meta refresh | An HTML page that redirects | No | Usually the tracker's page | Only to change the referrer |
| Double meta refresh | Two pages in a row | No | Often blank | Rarely; some networks dislike it |
| JavaScript | A page with a script | No | The tracker's page | When 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:
- Don't rely on the referrer to know which page sent a click. Use a sub-ID per placement or a site script.
- A 302 passes the original page's referrer on, so the network may see your site's domain.
- A meta refresh makes the referrer your tracker's page instead; a double meta refresh usually blanks it.
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
- Google and Microsoft Ads check that the final URL's domain matches the display URL. Put the tracker in the tracking template; it must end at the final URL's domain, which is why many affiliates send search traffic to their own page.
- Meta and TikTok review the landing page the link ends on. Redirect chains that end somewhere other than what reviewers saw get ads rejected.
- Push, pop and native networks generally accept tracker links directly, but check each network's policy.
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