How to Use a Custom Tracking Domain

By default, the open tracking image and all click-tracking URLs reference mandrillapp.com. Links are redirected from mandrillapp.com to the final destination. If you prefer, you can set up custom tracking domains to use your own subdomain in open and click tracking URLs instead of mandrillapp.com.

To enable custom tracking for a subdomain, first set up a CNAME record pointing your subdomain to mandrillapp.com. The tracking domain must be a subdomain (like clicks.yourdomain.com) and can't be a root domain (like yourdomain.com).

Add a New Custom Tracking Domain

  1. Go to Settings.
  2. Choose Tracking Domains.
  3. Enter your subdomain and click Add.
  4. Click Test DNS Settings to check the DNS settings for the subdomain you've added.
  5. After the test is complete, click the View DNS settings link under the results for more detailed information about your current settings.

Enable a Custom Tracking Domain

You can enable a custom tracking domain using the tracking_domain parameter (API), X-MC-TrackingDomain (SMTP), or globally for your account under on the Sending Options page. Global account settings apply for all emails by default, but if the API call or SMTP headers have different tracking options, this will override the account default setting.

 

Note

Each DNS provider/host may handle the adding or editing of records differently, so your host's technical support or documentation is the best resource for any limitations or formatting specific to that provider.

Some DNS providers take longer than others to publish and push the record. If you're adding a completely new record, those often validate within several minutes. Changing records can take longer, but can vary based on your DNS provider and TTL for the record.

A tracking domain can only be added to one Mandrill account. Addition to a different Mandrill account will result in an error.