E-mail view / opening
<!-- ADSTAX Tag --> <img style="display: none; visibility:hidden; border: 0 none;" width="0" height="0" src="https://tr.shiftforward.io/events/pixel.gif?type=emailView&clientId=<client identifier>&campaignId=<campaign id>&eh=<email hash>" alt=""> <!-- End of ADSTAX Tag -->
Including this tag in the email will result in an Email View event.
E-mail view / opening in MailChimp
For MailChimp templates you can use the merge tags to fill in campaignId and email hash:
<!-- ADSTAX Tag --> <img style="display: none; visibility:hidden; border: 0 none;" width="0" height="0" src="https://tr.shiftforward.io/events/pixel.gif?type=emailView&clientId=<client identifier>&campaignId=*|CAMPAIGN_UID|*&eh=*|EMAIL_UID|*" alt=""> <!-- End of ADSTAX Tag -->
E-mail click
This uses the Click-through interface and should be used to replace existing links with the equivalent click-tracked links, taking the original destination URL and passing it as a url-encoded parameter ourl
.
<a href="https://tr.shiftforward.io/events/click?clientId=<client identifier>&siteId=<site identifier>&type=emailClick&&campaignId=<campaign id>&eh=<email hash>&ourl=<url-encoded destination url>">Link</a>
E-mail clicks in MailChimp
For MailChimp in particular, prepend your links with the following:
http://tr.shiftforward.io/events/click0?clientId=<client identifier>&siteId=<site identifier>&type=emailClick&campaignId=*|CAMPAIGN_UID|*&eh=*|EMAIL_UID|*&ourl=
For example, in an RSS-style e-mail campaign you would prepend |RSSITEM:URL|
, e.g.:
<a href="http://tr.shiftforward.io/events/click0?clientId=<client identifier>&siteId=<site identifier>&type=emailClick&campaignId=*|CAMPAIGN_UID|*&eh=*|EMAIL_UID|*&ourl=*|RSSITEM:URL|*" target="_blank">*|RSSITEM:TITLE|*</a> - </span><em style="font-size:12px">*|RSSITEM:DATE|*</em></h2>
E-mail click to unsubscribe in MailChimp
Prepend |UNSUB| in your template with the AdStax raw click tracking with event type emailUnsubscribe, e.g.:
<a href="http://tr.shiftforward.io/events/click0?clientId=<client identifier>&siteId=<site identifier>&type=emailUnsubscribe&campaignId=*|CAMPAIGN_UID|*&eh=*|EMAIL_UID|*&ourl=*|UNSUB|*" target="_blank">unsubscribe from this list</a>