What is custom tracking?
By default, MailChannels uses shared domains for click-tracking links, open-tracking pixels, and unsubscribe URLs embedded in your emails. A custom tracking domain replaces those shared domains with one you own (e.g.,click.example.com), improving brand consistency and deliverability.
Each custom tracking domain is defined by three user-configurable fields:
hostname— the subdomain you control, e.g.,click.example.com.scope— the event type it handles:click,open, orunsubscribe.name— a unique short label used to select this domain at send time (e.g.,clickdemo).
Custom tracking domains are not available on the free developer plan. Upgrade to a paid plan to enable it.
Registering a custom tracking domain
1
Submit the registration request
Provide the If the domain has not been verified yet, the API returns the DNS records you need to add.
The domain is not active at this stage.
hostname, scope, and a unique name for the domain.2
Add the required DNS records
Add both records to your domain’s DNS before retrying:The TXT record proves you own the hostname. The CNAME record routes tracking traffic to MailChannels infrastructure.
3
Re-register to confirm
Once both records have propagated, call the registration endpoint again with the same request body.
If verification succeeds, the API returns the domain in the
active status.If either record is not yet visible to MailChannels, the response includes an
instructions field
describing which record is still missing. Wait for DNS propagation and retry.Sending with custom tracking
Reference the custom tracking domain by itsname in tracking_settings or unsubscribe_settings
when sending a message. The domain must have active status.
A full send example:
Managing custom tracking domains
Listing domains
Retrieve all registered domains for your account. Optional filters includename, status, and scope.
Updating a domain
Rename a domain or toggle its status betweenactive and disabled.
Reactivating a disabled domain triggers DNS re-verification. Both the TXT ownership record and the
CNAME record must be in place. If either is missing, the response includes an
instructions field
describing what to add.
