Skip to main content

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, or unsubscribe.
  • 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 hostname, scope, and a unique name for the domain.
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.
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 its name 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 include name, status, and scope.

Updating a domain

Rename a domain or toggle its status between active 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.

Deleting a domain

Delete a domain by its hostname and scope. The same hostname and scope can be re-registered if needed.
Any tracking links or unsubscribe URLs in previously sent emails that used a deleted domain will stop working immediately.