Key takeaways
- Check the CNAME with dig +short CNAME <tracking hostname> and confirm the answer is mailgun.org.
- If it is, look at the domain's tracking settings and the per-message flags.
- If it is not, fix DNS and wait for propagation, which Mailgun's verification guide says can take 24 to 48 hours.
Most tracking problems in Mailgun trace back to the tracking CNAME: it is missing, points somewhere other than `mailgun.org`, sits at a name that already holds other records, or was changed after links were sent. The table below pairs each symptom with the check that separates the causes. Run the DNS checks first, because the control panel can show a record as entered even when the public answer is wrong.
Research checked: 12 November 2026
The short answer
Check the CNAME with `dig +short CNAME <tracking hostname>` and confirm the answer is `mailgun.org`. If it is, look at the domain's tracking settings and the per-message flags. If it is not, fix DNS and wait for propagation, which Mailgun's verification guide says can take 24 to 48 hours.
Symptom table
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Links go to the original destination, not tracked | Click tracking off, or the flag is off for this message | Tracking Settings; message source for rewritten links | Enable tracking for the domain or the message |
| Links show a hostname that does not resolve | Tracking CNAME missing or not propagated | `dig +short CNAME <hostname>` returns nothing | Publish the CNAME; wait for propagation |
| Links point to an unexpected host | CNAME target is not `mailgun.org` | Read the CNAME answer exactly | Correct the target |
| CNAME refused or inconsistent | Other records already at the same name | `dig +short <hostname>` and `dig +short TXT <hostname>` | Remove the conflicting record if nothing depends on it |
| Opens not recorded | Plain-text-only message, or images blocked | Check the message has an HTML part | Send an HTML version; do not expect every open |
| HTTPS tracking fails | Certificate could not be issued | The CNAME resolves correctly to `mailgun.org` | Confirm the CNAME first, then retry the HTTPS switch |
| Tracking works on one domain, not another | Setting or CNAME applied to the wrong domain | Compare the domain on each message's logs | Apply the setting to the sending domain |
Symptoms in detail
Symptom 1: Links are not rewritten
Tracking is applied per domain in Tracking Settings, and a per-message flag can override it. Check the message source for the rewritten URL. If the link is unchanged, first confirm the domain setting, then check whether the message was sent with a flag that turns tracking off.
Symptom 2: The tracking hostname does not resolve
Run `dig +short CNAME email.example.com` for your hostname. An empty answer means the record is missing at that name, or the name has a typo. A DNS host that appends the domain automatically can also create `email.example.com.example.com`. Enter only the left-hand part of the name, following the format of your existing records.
Symptom 3: The CNAME points to the wrong target
The target for tracking is `mailgun.org`. A CNAME to any other host sends clicks to that host. Read the answer exactly, including the trailing dot. If a previous setup pointed the same name elsewhere, replace the record and wait out the TTL before you assume the fix has taken effect.
Symptom 4: The change is refused
A CNAME cannot coexist with other record types at the same name. If the hostname already has an A, TXT or MX record, the CNAME will not publish cleanly. Check every type with `dig`. Remove the conflicting record only after confirming nothing depends on it.
Symptom 5: Opens are missing
Mailgun's open tracking documentation states that plain-text-only emails do not track opens, because the tracking image needs an HTML component. It also notes that many providers block images by default, so an open only registers when the recipient displays images. Missing opens are therefore expected for some messages. Test with an HTML message and a mail client that loads images before concluding it is broken.
Symptom 6: HTTPS tracking will not enable
Mailgun's tracking documentation says that switching to HTTPS generates a Let's Encrypt certificate for the tracking domain. Issuing that certificate depends on the hostname resolving to Mailgun. If the CNAME is not correct, the certificate cannot be issued. Fix the CNAME, confirm it with `dig`, then retry. Keep HTTP working while you wait, so links in live messages keep resolving.
Symptom 7: Tracking works for one domain only
Each sending domain has its own tracking settings. A setting applied to a different domain will not affect the one you are sending from. Compare the domain shown in the logs for a failing message with the domain where you enabled tracking.