Setting up a custom tracking domain with a CNAME: the DNS steps, and what to do when it won't connect
November 28, 2026 · Hoplytic team · 5 min read
Read the video transcript
How do you put your tracking links on your own domain? With one CNAME record.
Pick a subdomain, like go dot your site dot com. A CNAME can't sit on the root domain beside other records, such as email.
At your DNS provider, add a record of type CNAME. For the name, type just go, not the full address. For the target, paste exactly what your tracker shows.
If it won't connect, remove any older record with the same name. Make sure proxying is off. On Cloudflare that's the grey cloud. Then check it yourself with nslookup, instead of waiting hours.
Keep the record and renew the domain, because every link on it stops working if either goes.
In Hoplytic, type the subdomain under Domains and you get one CNAME to add. The page checks by itself and turns green, and HTTPS is set up automatically. You can connect up to twenty domains, and the first adds a thousand bonus clicks.
The full guide is right below. Hoplytic: ad tracking made simple.
Key points
- A custom tracking domain is a subdomain of yours, like go.yoursite.com, pointed at your tracker with one CNAME record.
- Use a subdomain, not the root domain: a CNAME can't sit on the root alongside other records, and the subdomain keeps your main site separate.
- Most connection failures are the name typed in full, an old record with the same name, a typo in the target, or a proxy in front of the record.
- Check the record yourself with nslookup or dig before waiting hours for it to propagate.
Connecting your own tracking domain is one DNS record. It still goes wrong often enough that it's worth understanding what the record does, so you can fix it in five minutes instead of waiting a day.
Short answer: pick a subdomain such as go.yoursite.com, then at your DNS provider add a CNAME record with name go and the target your tracker gives you. Remove any other record with that name, leave proxying off, and check it with nslookup go.yoursite.com. Once the CNAME resolves, the tracker can issue an HTTPS certificate and your links work on your domain.
What the CNAME actually does
A CNAME record says "this name is an alias for that name". When a visitor clicks https://go.yoursite.com/tent:
- Their browser asks DNS for
go.yoursite.com. - Your DNS answers: it's an alias for
domains.tracker.example(the target). - The browser looks up the target's address and connects to your tracker's server.
- The tracker sees the request was for
go.yoursite.com, finds your linktent, and redirects.
Because it's an alias rather than a fixed IP address, the tracker can move servers without you changing anything. Why you want your own domain in the first place is covered in tracking redirects and domains.
Choose the name
- A subdomain, not the root. DNS rules don't allow a CNAME on
yoursite.comitself alongside the records a root domain needs, such as MX for email. Some providers offer workarounds (CNAME flattening, ALIAS or ANAME records), but a subdomain avoids the problem. - Short and neutral.
go.,link.,get.andtry.are common. Avoid words liketrack.orclick.that ad blockers and filters are more likely to target. - Your main brand or a separate domain? A subdomain of your site looks most trustworthy to readers. Media buyers running aggressive campaigns sometimes use a separate domain so a flagged link can't affect their main site. Pick based on what the links promote.
- Not one already in use. If
go.yoursite.comalready points somewhere, choose another name or remove the old record first.
Add the record
| Field | Value | Common mistake |
|---|---|---|
| Type | CNAME | Choosing A, which needs an IP address |
| Name / Host | go | Typing go.yoursite.com, which many providers turn into go.yoursite.com.yoursite.com |
| Target / Value / Points to | Exactly what your tracker shows | A typo, a missing part, or https:// added in front |
| TTL | Default or Auto | None; lower TTLs only speed up later changes |
| Proxy (Cloudflare) | DNS only (grey cloud) | Leaving the orange cloud on |
Some providers show a trailing dot on the target (domains.tracker.example.). That's normal DNS notation; leave it if the form adds it.
Check it yourself
You don't have to wait for your tracker's page to turn green. From a terminal:
nslookup go.yoursite.com
# or
dig go.yoursite.com CNAME +short
- Shows your tracker's target: the record works. Any remaining delay is on the tracker's side, usually the HTTPS certificate.
- Shows Cloudflare addresses or no CNAME: the proxy is on. Switch the record to DNS only.
- "Non-existent domain" or nothing: the record isn't live yet, the name is wrong, or you edited DNS at a provider that isn't the one your domain actually uses.
- Shows some other target: an older record with the same name is still there.
That last-but-one case catches many people: the domain was bought at one company but its nameservers point to another (often Cloudflare or a host). Records only count at the provider listed as the domain's nameserver. nslookup -type=NS yoursite.com tells you which.
HTTPS and CAA records
Once the CNAME resolves, the tracker requests a certificate for your subdomain, usually automatically. If it fails while DNS is right, check for a CAA record on your domain. A CAA record lists which certificate authorities may issue certificates for it; if your tracker's authority isn't on the list, issuance is refused. Ask your tracker which authority it uses and add it, or leave CAA records off if you don't use them.
Keep it working
- Don't delete the record while links are live. Every link on that domain stops working the moment it's gone, in every post and video that uses it.
- Renew the domain. An expired domain takes all its links with it, and expired domains get bought by others.
- Moving trackers: point the CNAME at the new tracker only after your links exist there with the same short codes.
- Test after any DNS change with the redirect checker: the first hop should be your domain answering with a redirect.
When more than one domain makes sense
One tracking domain is enough for most people. A second one helps when:
- You run separate brands or sites. Links in your camping blog should show the camping brand, not your cooking site.
- You manage clients. Each client's links sit on their own domain, so they can keep them if you part ways.
- You buy traffic aggressively. Keeping paid campaigns on a separate domain means a flagged domain doesn't take your content links with it.
Each extra domain is one more CNAME and one more renewal to keep track of. Write down which domain is used where.
How it works in Hoplytic
In Hoplytic you type the subdomain under Domains and get one CNAME record to add. It detects your DNS provider and shows that provider's steps, the page checks by itself and turns green when the record works, and HTTPS is set up automatically. Existing links work on the new domain straight away, you can connect up to 20 domains, and the first one adds 1,000 bonus clicks that never expire. The custom domain help has the exact record, the Cloudflare option and fixes for "Waiting for DNS".
Questions people ask
What is a CNAME tracking domain?
A subdomain you own, such as go.yoursite.com, with a CNAME record that points it at your tracker's server. Your tracking links then use your domain instead of the tracker's shared one.
Can I use my root domain as a tracking domain?
Usually not with a CNAME: DNS rules don't allow a CNAME on the root next to the other records a root domain needs. Some providers offer CNAME flattening or ALIAS records to work around it, but a subdomain is simpler and keeps your main site separate.
How long does a CNAME take to work?
Often a few minutes, sometimes a few hours, depending on your DNS provider and the record's TTL. If nslookup shows the right target and it still isn't connected after a few hours, look for a conflicting record or a proxy.
Should I turn on the Cloudflare proxy for my tracking domain?
Usually no. With the orange cloud on, Cloudflare answers instead of your tracker, which can hide the record and add its own bot checks in front of real clicks. Set the record to DNS only unless your tracker documents a proxied setup.
More in Tracking fundamentals
Also: tracking glossary · ad platform macros · Markdown copy