Click tracking works by rewriting each link in your message. Instead of pointing directly at your page, the link points at a tracking server that records the click and then redirects the reader to the real destination. Open tracking adds a tiny image in the same way, as described in email tracking pixels. The tracking server needs a domain name, and the choice of that name has more influence on deliverability than most people expect. A shared domain belonging to your provider is easy to start with, but it lends your links the reputation of every other customer. A custom tracking domain on your own domain puts the reputation in your hands and makes the links look consistent with your brand. This guide explains how tracking links work, what a custom domain changes, how to set one up including HTTPS, what to check afterwards and which privacy points to bear in mind.
How a tracked link works
When you send a campaign with click tracking on, the sending system replaces each URL with one that encodes the message, the recipient and the target. A reader who clicks reaches the tracking host, which records the event (time, link, usually a coarse device and location from the request) and returns an HTTP redirect, normally 301 or 302, to the destination. This takes a few milliseconds when the server is healthy. The recorded events feed your click reports, automations that act on clicks and, if you use them, webhooks. See delivery event webhooks.
Why the tracking domain matters
- Filters look at link domains. Spam filters and URL blocklists check every domain in the message. If a shared tracking domain is listed because another customer sent abusive links, your messages inherit the problem even though you did nothing wrong.
- Mismatch looks suspicious. A message from
example.comwhose links all point at an unrelated domain may seem odd to a cautious reader or an automated check. Matching domains look consistent. - HTTPS and trust. Browsers warn about links without valid certificates. A tracking host that serves a certificate for the wrong name, or only plain HTTP, will show warnings and lose clicks.
- Portability. A tracking domain you own travels with you if you change provider; old emails keep working as long as the redirect still resolves. Links on a provider's shared domain stop working if you leave.
- Reputation of your own. The domain collects its own history. Good engagement helps; careless link content hurts.
See domain vs IP reputation and custom return-path and tracking domain alignment.
Setting up a custom tracking domain
- Pick a subdomain. Choose a name that is clearly yours and neutral, for example
links.example.comorclick.example.com. Avoid words that spam filters associate with abuse. Use a subdomain, not the root, so that the CNAME does not conflict with other records. - Add the CNAME. Your provider gives you a target host. Create the record at your DNS host:
links.example.com. 3600 IN CNAME track.provider.example.- Let the provider issue the certificate. Most providers obtain an HTTPS certificate for your tracking host automatically once the CNAME resolves. Wait for the status to show as active. If you must supply your own certificate, make sure it covers the exact host name and renew it before it expires.
- Verify. Open
https://links.example.com/in a browser and check that the certificate matches the name and the page does not show an error. Many providers show a verification status in the dashboard. - Switch the sending to the new domain. Enable the custom domain for the account or the sending domain. New campaigns will use it.
- Send a test. Click each type of link, including the unsubscribe link, and confirm that the redirect works, that the destination is correct and that the click appears in reports.
Look at adding DNS records at common registrars if you are unsure. On Cloudflare, set the record to "DNS only" (grey cloud) unless your provider says otherwise, as a proxy can interfere with certificate issue. If your DNS host already has a CNAME or other record at the same name, remove it first, because a name that has a CNAME cannot hold other records.
Common problems
| Symptom | Cause | Fix |
|---|---|---|
| Browser warns "not secure" on click | No HTTPS certificate for the tracking host, or still pending | Wait for issuance, or check CNAME; do not send until active |
| Clicks work but are not recorded | Redirect bypassed, or the link was changed by a security scanner | Review scanner behaviour; see below |
| CNAME will not save | Another record exists at the same name | Remove the conflicting record |
| Links break after changing provider | Tracking domain still points at the old host | Keep the old target until old emails no longer matter, or migrate with the provider |
| Unusually high click counts at the same second | Security scanners opening links automatically | Filter bot clicks in analysis |
| Messages go to spam after turning tracking on | Shared domain with poor reputation, or too many redirects | Use a custom domain; reduce the number of tracked links |
| Redirect is slow | Overloaded tracking server or long redirect chains | Choose a provider with good performance; avoid chaining shorteners |
Scanners and inflated clicks
Many companies run security gateways that open every link in incoming mail to check for malware. These requests look like clicks. They typically occur within seconds of delivery, come from data centre addresses and hit every link in the message. Treat click counts with care: a campaign showing a click on every link from the same recipient within a second is probably a scanner. Good platforms filter known scanners; you can add your own rules by looking at timing and user agents. Never trigger an irreversible action, such as unsubscribing or confirming a purchase, from a plain GET request that a scanner could follow. Use a confirmation page. See one-click unsubscribe for how this is handled correctly.
Privacy and compliance
Click tracking collects information about individual recipients. Your privacy notice should say that you measure engagement with email, and in regions that require consent for tracking technologies you should check what that means for your audience; seek legal advice for the details. Some recipients and mail clients block tracking, and several privacy features now hide or alter engagement data, so build your decisions on trends and on actions that cannot be faked, such as purchases and replies. See Apple Mail Privacy Protection and GDPR email consent.
When to turn click tracking off
Not every message needs tracked links. Password reset emails and one-time codes are sensitive: a rewritten link adds a third party to the path and a redirect that can fail. Many teams disable tracking for security-related mail and keep it for marketing. You may also turn it off for plain-text style emails sent to a business audience, where a wrapped link can look less personal. If you do track, use the same domain for all links in a message, because a mix of domains looks careless to both people and filters. Make sure that the visible text of a link matches its destination host; a link whose text shows example.com but whose target is another domain resembles phishing.
A custom tracking domain is a small piece of DNS work that gives you control over link reputation, brand and portability. Set it up before you scale up, test the HTTPS behaviour and monitor clicks with the knowledge that scanners exist.
Brand your tracked links Set up a custom tracking domain with HTTPS and keep link reputation in your hands.
References and further reading
Frequently asked questions
What is a custom click tracking domain?
A subdomain of your own, pointed by CNAME at your provider, that serves the redirects for tracked links in your email.
Why not use the provider shared tracking domain?
It shares reputation with other customers. If it is listed or distrusted, your links suffer too.
Do I need HTTPS on the tracking domain?
Yes. Without a valid certificate, browsers show warnings and clicks are lost.
Why do I see clicks within seconds of delivery?
Security scanners often open every link. Filter them out when you analyse engagement.
Should I track links in password reset emails?
Usually not. Disable tracking for sensitive, security-related messages.