How do I enable open tracking?
You can enable open tracking for a server, a specific email, or for all emails that belong to a tag.
⚠️ Please note, individual messages sent through the API or SMTP may override the open tracking setting set within the Postmark UI. For instance, if the Server has open tracking toggled off within the Server's settings in the Postmark UI, an individual message can still be tracked with the Postmark API at time of sending if the TrackOpens field is set to 'true'.
Tracking Emails By Server
To track all email sent through a particular server:
- Choose the Server you wish to track emails on.
- Go to the Settings.
- Scroll to the bottom of the page, there is an option to enable Open Tracking.
Tracking a Single Email With The API
You’ll need to enable a flag called TrackOpens by adding a new property to the JSON you send to the
/email
endpoint. Use TrackOpens
and set it to true
. Setting it to false
will omit open tracking from that email.
"TrackOpens": true
Note: There is no way to disable open tracking on a per-email basis when the server's "Open tracking" setting is enabled. The server's enabled "Open tracking" setting will override an individual email's TrackOpens value to always be true.
Tracking a Single Email With STMP
To enable open tracking for a single email, add a header called
X-PM-TrackOpens
to your email and set it to true
. Setting it to false
will omit open tracking from that email.