Manual Use of Engagement Tracking Events
Applies to SocketLabs On-Demand
When not using the 'Automatic Tracking' option for Engagement tracking, both Open and Click events can only occur when specific tags are added to a message's contents. Unsubscribe events always require text to be added, and cannot currently be automatically generated.
Manually Tracking the Open Event
The following text should be added to the HTML body component of a message, which will cause our service to insert a link to a transparent tracking image used to determine when an Open event has occurred:
Manually Tracking the Click Event
Insert the HsTracking="true" attribute inside of any anchor tag for links to be tracked, i.e.:
<a href="http://example.com/linkdestination/" HsTracking="true">Click Here</a>
Manually Tracking the Unsubscribe Event
This event cannot be tracked automatically, and so manual syntax must be used in order to track unsubscribes. Additionally, this is the only event that can be invoked from the plain text body of a message, as opposed to the HTML body.
In order to generate an unsubscription link in the Text portion of a message, use the following syntax:
In order to generate an unsubscription link in the HTML portion of a message, use the following syntax:
<HsUnsubscribe>Custom Link Text</HsUnsubscribe>
Which will generate a link similar to this:
<a href="http://unsubscribe-url/">Custom Link Text.</a>
The following Knowledge Base article may also be of interest: