There are several options for enabling and using our Link Tracking feature. You can track links at the Stream level (tracks links for all emails sent from a particular Postmark Stream) or Message level (track links for individual emails manually). Both of these options allow you to also choose whether to track links in HTML emails, Plain Text emails, or both.
The easiest and quickest way to enable Link Tracking is directly from Statistics in your Postmark Stream:
- Choose the Stream you wish to track links on.
- Go to the bottom of the Statistics page to see the area for Link tracking.
- Select the toggle to enable link tracking for the Stream from here.
If you wish to track all links for emails you send from this Stream, you are now all set and tracking will begin immediately. If you would like to learn more about advanced options for Link Tracking, continue reading.
More Link Tracking Options
Link Tracking can also be enabled for a Server in the Server's settings:
- Go to the Settings for the Stream.
- Scroll to the bottom of the page.
- Select the toggle below Link tracking.
This will enable Link Tracking for all emails sent from this Stream. This option will track links for all emails sent from this Stream by default.
Once enabled, you will then have the option to track links in HTML or Plain Text emails. By default, links in both HTML and Plain Text emails will be tracked when you enable Link Tracking. You can also disable link tracking for HTML or Plain Text emails here:
All emails from this Stream will now have their links tracked for the email types chosen by default. See below for details on how you can override these defaults at an individual email level.
Message Level Link Tracking
When sending using the API, you can set the Link Tracking behavior at the individual email level using the
“TrackLinks” field. Options for this field are:
"TrackLinks": "HtmlAndText"— tracks links in both the HTML and Plain Text parts of the email
"TrackLinks": "None"— do not track any links
"TrackLinks": "HtmlOnly"— only track links in the HTML part of the email
"TrackLinks": "TextOnly"— only track links in the Plain Text part of the email
"TrackLinks": null— do not specify a value, uses the default for the Server
Disable Tracking for Specific Links
If you are tracking links in HTML emails, you can also opt out specific links by adding an attribute with value
data-pm-no-track to the link. For example, this link will not be tracked:
<a data-pm-no-track href=\"http://www.somedomain.com\">This link won't be tracked.</a>