Custom Tracking Domains

Use your own domain for tracking links to improve deliverability and brand consistency.

Tracking can give you a clear picture of how your emails are performing.

But email tracking typically relies on shared domains, meaning reputation is shared as well. If others using your domain are not sending emails responsibly, it can impact your deliverability.

Today, we're launching custom tracking domains, free for all Resend users.

How it works

To get started, go to Domains, and select the Configure tab for your domain.

Add the required record to your DNS settings and Resend will automatically route all tracking through your custom domain.

Both features are configured at the domain level, and both are disabled by default.

Two types of tracking

On Resend, you can enable two different types of tracking:

1. Click tracking

When you enable click tracking, Resend sets up a redirect for each link in your email. When a recipient clicks, the action is recorded and they are immediately forwarded to the original URL.

2. Open tracking

When you enable open tracking, Resend embeds a 1x1 pixel transparent image in your emails. When a recipient's mail client downloads it, Resend records an open event.

Why a custom domain matters

Inbox providers like to see consistency between your sending domain and the content of your emails.

When tracking links pass through a domain you own, rather than a shared one, inbox providers notice. And that alignment is better for deliverability.

It also means your recipients never see an unfamiliar domain in the links they click.

Set up custom tracking via the API

Of course, you can also enable custom tracking when creating a domain via the API.

import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.domains.create({
name: 'example.com',
openTracking: true,
clickTracking: true,
trackingSubdomain: 'links',
});

You can also verify the tracking domain via the API.

Pair with webhooks

Custom tracking is most powerful when combined with webhooks. Every open and click fires an event in real time, so you can:

  • Measure performance
  • Segment your audience
  • Refine your emails

Get started today

Custom tracking domains are free for all Resend users.

Visit the custom tracking domain docs to get started.