Open and click tracking

Sendfern can tell you when recipients open an email and click its links. Tracking is on by default and set per domain: this page explains how it works, how to turn it off, and how to use your own tracking domain.

How tracking works

  • Opens. A tiny invisible image is added to the HTML body. When the recipient's mail client loads it, Sendfern records an opened event. Plain-text emails have no images, so their opens are not tracked.
  • Clicks. Links in the HTML body are rewritten to pass through a tracking address, which records a clicked event and then redirects to the original URL.

Both apply to live emails only. Test mode simulates deliveries, bounces and complaints, but never opens or clicks.

How accurate opens are

Treat open counts as an estimate. Some mail clients load images before anyone reads the message: Apple Mail Privacy Protection, for example, can fetch images for every email it receives, which records an open the reader never made. Other clients block images by default, so a real read records nothing. Clicks are a more reliable signal of engagement, though security scanners can follow links too.

Tracking events

Opens and clicks show up on the email's timeline (GET /v1/emails/{id} and the email page in the dashboard) and as webhook events:

email.openedevent
The email was opened. data.user_agent is the client that loaded the image.
email.clickedevent
A link was clicked. data.link is the original URL and data.user_agent the client that followed it.
Webhook payload · email.clicked
{
  "id": "whevt_8sTq2LmVx4PbN7cRzK1fWd",
  "type": "email.clicked",
  "mode": "live",
  "created_at": "2026-11-28T10:24:51Z",
  "data": {
    "email_id": "em_VNqV5JEIqYYeYbZRhbPrJ6",
    "from": "Acme <hello@acme.com>",
    "to": ["user@example.com"],
    "subject": "Your order has shipped",
    "recipient": "",
    "tags": {"type": "shipping"},
    "broadcast_id": null,
    "link": "https://acme.com/orders/1042",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) ..."
  }
}

Every open and click is its own event, so one email can have many of each. They are events, not statuses: an email that was opened stays delivered. The recipient field is empty for opens and clicks, so on an email with several recipients you can't tell which one opened it. See Webhooks and Email lifecycle.

Turn tracking off

PATCH/v1/domains/{id}

Turn open and click tracking on or off for each domain, either from the domain page in the dashboard or with the API. The settings apply to live emails sent from the domain's addresses after the change. Use a live key with full access: test keys and send-only keys get a 403.

Body

track_opensboolean
Add the open-tracking image. Default true.
track_clicksboolean
Rewrite links to track clicks. Default true.
tracking_domainstring
Your own domain for tracking links, or an empty string for none. See Use your own tracking domain.
curl -X PATCH https://api.sendfern.com/v1/domains/dom_4kXq9TzPaL2mWc7RbN1sVe \
  -H "Authorization: Bearer $SENDFERN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"track_opens": false, "track_clicks": false}'

Send only the fields you want to change. The response is the updated domain. If the settings can't be applied, the answer is a 400 with the code provider_error and nothing changes; try again.

Settings are per domain, not per email: every live email from the domain's addresses uses them. If you have verified both acme.com and mail.acme.com, mail from mail.acme.com addresses uses the subdomain's settings, so you can, for example, turn click tracking off for account emails only.

Use your own tracking domain

By default, tracked links point at a shared tracking address. With a tracking domain, they use a subdomain of your own instead, such as links.acme.com, so the links in your emails match your brand.

  1. Pick a subdomain

    It must be a subdomain of the domain, for example links.acme.com for acme.com, and must not be used for anything else. It can't be the domain's MAIL FROM subdomain (send.acme.com).

  2. Set it on the domain

    curl -X PATCH https://api.sendfern.com/v1/domains/dom_4kXq9TzPaL2mWc7RbN1sVe \
      -H "Authorization: Bearer $SENDFERN_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"tracking_domain": "links.acme.com"}'
  3. Add the Tracking record

    The domain's records now include a Tracking CNAME. Add it at your DNS provider like the other records, with proxying off.

    records[]
    {
      "record": "Tracking",
      "type": "CNAME",
      "name": "links.acme.com",
      "value": "r.us-east-1.awstrack.me"
    }

To go back to the shared tracking address, set tracking_domain to an empty string.

Next steps

Receive opens and clicks as they happen with Webhooks, or see every field in the API reference.