Email link click tracking for AI agents
Updated 2 December 2026
Short answer: the agent swaps each link in the email for a tracked address that records the click and then redirects to the original page. A person's click in a browser counts as opened, even when the recipient's mail app blocked or hid the tracking image. Clicks by security software are labeled and not counted. The destination of a link is never stored.
Click tracking is the second signal next to the pixel. Like the pixel, it applies to every email the agent sends for you. Links are wrapped by default, and you can tell the agent to track opens without tracking links.
How a link is tracked
-
The agent creates the tracked message as usual (
POST /v1/messages, or thedidtheyopen_track_emailMCP tool, which takes the links in the same call). -
It sends the link addresses from the email's HTML, in order, to
POST /v1/messages/<id>/links, up to 50 per call. -
Each address comes back with a
tracked_url. The agent puts it in thehrefand leaves the visible link text alone. - When someone clicks, the tracker records the click and answers with a redirect to the original page.
Some links are never tracked and come back with tracked_url: null: mailto and
anything else that is not a web address, unsubscribe and opt-out links, addresses that
carry credentials, and addresses over 2,048 characters. Links in the plain-text part are
left alone.
Which clicks count
| Who fetched the link | What happens |
|---|---|
| A person, in an ordinary browser | Labelled opened. Counts as an open and as a click. |
| Security software, a scanner or a crawler | Labelled prefetch_likely. Not counted. |
| Apple's relay or another mail proxy | Labelled prefetch_likely. Not counted. |
| An Apple or Google network, with a normal browser | Labelled unknown. Not counted. |
| A link checker or preview that only asks for headers | Redirected, never recorded. |
Timing is never used to decide. A person can click within seconds of delivery. For the image-load labels, see How accurate is email open tracking?.
What you hear back
A person's first click is worth telling. If the email was already opened, the agent says
so, for example "Dana opened it and clicked the link." If the click is the first sign,
because images were blocked or Apple Mail hid the open, the click is reported as the first
open. In the API, insight.clicks counts clicks labelled opened,
and each event carries kind (open or click) and the
position of the link.
What is stored, and what is not
- Stored per click: the time, the position of the link in the email, a coarse device family and a classification.
- Never stored or logged: the destination address. It is encrypted inside the tracked link itself. The tracker decrypts it to answer the click and then forgets it.
- No IP addresses or locations are stored.
Links never break
A valid tracked link always redirects, even after the tracked message is paused, expired or deleted. Only the recording stops. A link that has been altered answers "This link is not valid" and never redirects anywhere, so a tracked link cannot be bent to point at another site.
Limits to know
- Some recipients never click. No click does not mean unopened.
- A forwarded email carries the same links. A click shows that someone opened the email, not who.
- Links rewritten to another domain can look less trustworthy to recipients and to spam filters. Track links only when you want clicks.
- Security tools that click from ordinary networks with a real browser can look like a person. Microsoft's link scanner is recognised by its network; others may not be.
Turn it on
Link tracking comes with the normal setup. Paste the prompt, and the agent wraps links by default on every email it sends for you:
Set up email open tracking for me with didtheyopen. Follow https://didtheyopen.com/agent.md
Developers can call the endpoint directly: see Email open tracking API for AI agents and the API docs.
25 tracked emails are free, with no card. Then Personal is $9/month (up to 300 tracked emails a day) or Developer is $29/month (up to 2,000 a day). No recipient addresses, subjects, content or IP addresses are stored. A tracked message and its opens are deleted after 30 days by default, or sooner if you set a shorter expiry, from when the message is created.
Questions
Does a link click count as an open?
Yes, when a person clicks in an ordinary browser. Someone who clicked a link had the email open, so the click is labelled opened even if the tracking image never loaded. Clicks by security software, mail proxies and link checkers are not counted.
Do you store the link destinations?
No. The destination address is never stored or logged. It is encrypted inside the tracked link itself, and the tracker decrypts it only to answer the click with a redirect.
Will tracked links break after the tracked message expires?
No. A valid tracked link always redirects to the original page, even after the message is paused, expired or deleted. Only the recording stops.
Are unsubscribe links tracked?
No. Unsubscribe and opt-out links, mailto links, addresses that carry credentials and addresses over 2,048 characters are never tracked.
Do security scanners that click every link count as clicks?
No, when they can be recognised. Scanners, crawlers and Microsoft's link scanner are labelled prefetch_likely and not counted. A security tool that clicks from an ordinary network with a real browser can still look like a person.
Related guides
- How accurate is email open tracking?: the labels for image loads.
- Apple Mail Privacy Protection and email open tracking: why a click matters most for Apple Mail recipients.
- Email open tracking API for AI agents: every call, including the links endpoint.
- Is email open tracking legal?: the privacy rules that cover pixels and tracked links.