Track email opens when your AI agent sends from Gmail
Updated 18 November 2026
Short answer: paste one prompt to your agent. It signs up to didtheyopen, adds a 1x1 tracking image to each email you ask it to track, sends through your Gmail as usual, and hears back through a signed webhook or a scheduled feed. No browser extension, and no Google sign-in for us. Open tracking for the email your agent already sends from your Gmail or Outlook.
Set up email open tracking for me with didtheyopen. Follow https://didtheyopen.com/agent.md
If your agent supports MCP, you can add the remote server at
https://p.didtheyopen.com/mcp (Streamable HTTP, header
Authorization: Bearer <agent key>) instead of calling the HTTP API
yourself. Without a key, only the signup tool works, and the agent can sign itself up. The
same account and rules apply either way. See
open tracking for Claude, ChatGPT and Grok agents
if you want the client-side setup, and the
API guide for the endpoints.
Why Gmail's own tools don't cover this
Gmail has no open notifications for ordinary accounts. Browser trackers such as Mailtrack live in a Chrome extension: they only work when you click Send in Gmail on the web. When an agent sends through the Gmail API or SMTP, there is no extension in the path. didtheyopen sits in that path as one image tag, not as a new inbox and not as a Gmail add-on.
How it works with Gmail
-
Tracking is off unless you ask for it. For each email you want tracked, your agent calls
POST /v1/messages(or thedidtheyopen_track_emailMCP tool) and gets a unique pixel URL, shown once. -
It puts this image tag at the end of the HTML body, before
</body>, and sends with the Gmail API or SMTP. Gmail keeps the image. The agent does not change the subject, threading headers, attachments, or recipients, and it leaves the plain-text part untouched. -
If the HTML has links, the agent wraps them by default so a person's click in a browser
counts as opened. A click fetched by Apple's relay or another mail proxy, or from an
Apple or Google network with a normal browser, is labelled
prefetch_likelyorunknownand not counted. Skip that only if you tell it not to track links. Mailto and unsubscribe links are left alone. -
When the recipient's mail app loads images, your agent sees the open in the scheduled
feed (
GET /v1/events, ordidtheyopen_new_opens) or gets a signed webhook. It should tell you unprompted, for example: "Dana opened the proposal 3 times. Latest on an iPhone. No reply yet."
Plain-text emails cannot carry an image, so they cannot be tracked. The agent will not convert them to HTML just to sneak a pixel in.
What you'll see
Time of each open, a coarse device family (iPhone/iPad, Mac, Android, Windows, Outlook, Gmail's image proxy) and a count. Opens through Gmail's image proxy do not reveal the device; they are labelled "opened in Gmail" and count as opens.
Apple Mail privacy protection loads are labelled mpp_unknown and are not
counted as opens. Automatic loads by security software are labeled, not counted as opens.
A person's click in a browser counts as opened. A click fetched by Apple's relay or
another mail proxy, or from an Apple or Google network with a normal browser, is labelled
prefetch_likely or unknown and not counted. For the labels and
the limits of the signal, see
How accurate is email open tracking?.
An opened load within about ten minutes of when the tracked email was created is flagged
as possibly the sender viewing their own Sent copy (possible_self_view). The
dashboard and the agent's message flag that.
Several recipients
One image cannot tell people apart. If a tracked email has more than one recipient, the agent should send one copy per person, each with its own pixel, and report each person separately. Recipients will no longer see each other on that send. If you need everyone visible on one thread, send one shared email and accept a report of "someone opened it."
Limits to know
-
Recipients who block images produce no open from the pixel. A person's click in a
browser can still count. A click fetched by Apple's relay or another mail proxy, or from
an Apple or Google network with a normal browser, is labelled
prefetch_likelyorunknownand not counted. -
An opened load within about ten minutes of when the tracked email was created can be the
sender viewing their own Sent copy; it is flagged (
possible_self_view). - Some sending libraries strip external images. Send one test to your own address and open it in Gmail (web or app) or Outlook, not Apple Mail. Apple Mail hides opens, so that test only shows that the image arrived.
- Do not use it for sensitive correspondence (legal, medical, HR, or personal conflicts).
Privacy and price
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. What is kept until then is the time, a coarse device family, a count, and the display label your agent chooses, such as "Dana Levi."
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). Until you pay after the trial, the agent keeps sending your emails, just untracked.
The same one-prompt setup works if the agent sends from Outlook instead.
Questions
Do I need a Chrome extension or a Google sign-in with didtheyopen?
No. Your agent sends through your Gmail as it already does. We never need a Google login. The only setup is the prompt above, or the remote MCP server.
Does a Gmail image-proxy open mean they opened it?
It means Gmail loaded the image, which usually happens when the email is opened in Gmail. It is labelled "opened in Gmail." It still does not prove that a person read the email.
Can I track mail my agent sends from Google Workspace?
Yes. Any path that sends HTML works: Gmail, Google Workspace, Outlook and Microsoft 365, or an email API.