Grow with us: Join Postmark's new referral partner program and start earning
x

Enable Open Tracking for an entire server

When we launched open tracking, we created two ways to enable tracking on emails. You could either enable it with a field in your messages or enable it for a specific tag. While this works for most cases, it still takes some effort. We wanted to make it incredibly easy to start tracking opens in your emails, so today we launched open tracking per server. Now, with the click of a button, you can automatically enable open tracking on all HTML emails sent through a server.

If you are ready to start tracking opens on the server, the absolute easiest way is to use the Postmark web app under your server’s settings page. Once enabled, all HTML emails sent through this server will have opens tracked.

There are two ways to enable open tracking per server in the API. You can either use the account management endpoint or the server specific endpoint.

If you are using the server API key, just set TrackOpens to true for the specific server:

curl -X PUT "https://api.postmarkapp.com/server" 
-H "Accept: application/json" 
-H "Content-Type: application/json" 
-H "X-Postmark-Server-Token: " -v -d "{'TrackOpens': true}"

This call responds with the new (updated) server settings. The Server ID doesn’t have to be specified with this call as server token is bound to the specific server.

You can also enable open tracking per server with the Account management endpoint. Just set TrackOpens to true for the specific server:

curl -X PUT "https://api.postmarkapp.com/servers/:serverid" 
-H "Accept: application/json" 
-H "Content-Type: application/json" 
-H "X-Postmark-Account-Token: " -v -d "{'TrackOpens': true}"

This call responds with the new (updated) server settings. Notice that with this call has to be specified. The account token is found on Account page.

If you wish to disable open tracking for certain messages, remember that you can always set TrackOpens to false for a message.

Chris Nagele

Chris Nagele

Love to travel with the wife and kids. Wannabe race car driver. Not so healthy obsession with Building Science.