How do you set up link branding in ESPs?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

You send a campaign, links go out with click.mailprovider.com in the URL, and a recipient hovers over it and sees a domain they've never heard of. That's the problem link branding solves. It wraps your ESP's click-tracking infrastructure in your own domain, so links look like click.yourdomain.com instead of a generic provider URL.

Here's how to get it set up.

Step 1: Pick your subdomain

You need a subdomain on your sending domain. Common choices are click.yourdomain.com, links.yourdomain.com, or track.yourdomain.com. Pick something short and recognizable. Avoid anything that looks spammy or vague.

Step 2: Get the CNAME target from your ESP

Log into your ESP and find the link branding or click tracking section (usually under Settings, Sending Domains, or Tracking). Your ESP will give you a CNAME target to point your subdomain at. It'll look something like cname.sendgrid.net, mailgun.org, or a custom string specific to your account.

Popular ESPs and where to find this setting:

  • Twilio SendGrid: Settings > Sender Authentication > Link Branding
  • Mailchimp: Account > Domains > Connect Domain
  • Mailgun: Sending > Domains > Domain settings > DNS records
  • Klaviyo: Settings > Domains
  • Brevo: Settings > Senders & IP > Dedicated IP > Tracking

Step 3: Add the CNAME record in your DNS

Head to your DNS provider (GoDaddy, Cloudflare, Route 53, wherever your domain lives) and add a new CNAME record. It'll look like this:

Name (Host): click
Type: CNAME
Value: cname.yourprovider.net
TTL: 3600 (or whatever your DNS provider defaults to)

Still if your domain is harborpost.net, the full record would be click.harborpost.net CNAME cname.yourprovider.net.

Step 4: Verify in your ESP and wait for SSL

Now once the record is saved, go back to your ESP and click Verify. The ESP checks that your CNAME resolves correctly, then automatically provisions an SSL certificate for your subdomain. That SSL step is important because links in emails are often loaded over HTTPS. Without it, recipients may see a security warning.

SSL provisioning usually takes a few minutes but can take up to a few hours. Don't panic if it doesn't go green immediately.

Step 5: Test before you send

Send a test email to yourself. Click a tracked link and check the URL in the address bar. If it shows your subdomain, you're good. If it still shows the ESP's generic domain, something isn't resolved yet.

Common failure modes

  • CNAME not propagated yet. DNS changes take time. Use a tool like dig click.yourdomain.com CNAME or an online DNS lookup to confirm the record is live before blaming your ESP.
  • Wrong record type. Some DNS providers let you accidentally create an A record instead of a CNAME. Double-check the record type.
  • Existing A record conflict. If click.yourdomain.com already points somewhere (an old redirect, a parked page), the CNAME won't work. Delete the conflicting record first.
  • SSL fails to provision. This usually means the CNAME isn't resolving correctly yet. Wait for full CNAME verification before retrying.
  • Proxy service interference. If your domain is behind Cloudflare or a similar proxy, make sure the CNAME record is set to DNS-only mode (gray cloud in Cloudflare). Proxying a click-tracking CNAME breaks SSL provisioning.

Once it's all working, every tracked link in your campaigns goes through your own subdomain. That's better for deliverability, better for brand trust, and it means recipients don't see a random third-party domain when they hover over a link.

If you're stuck mid-setup and something isn't resolving, our SOS hotline is free and we'll help you debug it without a pitch.

The Email Almanac Field Notes: the most useful email questions, once a month

One email a month. New questions worth reading, real deliverability changes (Gmail and Outlook updates, etc.), and any tool or report that landed since the last issue. No fluff, no upsell.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Diagnose my link branding setup

I'm setting up link branding for my domain your domain in your ESP. Based on what I tell you about my DNS setup, help me: 1. Write the exact CNAME record I need to add 2. Identify any conflicts that might stop it from working 3. Walk me through verifying it's resolving correctly 4. Diagnose what might be wrong if my ESP shows the CNAME as unverified

Edit the yellow boxes, then send to the AI of your choice.