Skip to main content

Turn it on when sending

Add tracking_options to send an email or create a draft:
boolean
Add an invisible 1×1 image that records opens.
Send every http(s) link through the engine, which records the click and redirects.
string
Your own tag, sent back in the events.
string
A domain of yours that points at the engine (a CNAME), such as links.acme.com. It’s used in the tracking URLs instead of the engine’s address, so links look like your own.
Response 201
The response contains a tracking_id. The sent email has the same tracking_id once it syncs. Tracking works on the HTML body only, so plain-text emails can’t be tracked.

Events

Subscribe a webhook endpoint to tracking.open and tracking.click.
tracking.open
tracking.click has the same fields plus url, the link that was clicked. email_id is the sent email’s copy in the Sent folder, or null if it hasn’t synced yet.

Good to know

  • Opens are a hint, not proof. Some mail apps block images, so opens are missed. Others, such as Apple Mail Privacy Protection and Gmail’s image proxy, load images on their own, so an email can look opened when nobody read it. Clicks are more reliable.
  • Tracked links are signed, so nobody can use your engine to redirect to other sites.