Documentation Center

GetLinkTrackingURL()

Use this method to transform a URL or a Component URI into a trackable link. If the e-mail recipient clicks the link, they are redirected to the original URL or Component. Outbound E-mail also tracks the clicking of the link and adds it to the statistics.

Syntax

Function GetLinkTrackingURL(
Optional ByVal strHttpUrl As String, _
Optional ByVal strUri As String, _
Optional ByVal strTitle As String) As String

Parameters

ParameterDescription
strHttpUrlThe (optional) URL to track. Set this parameter to "" if you want to track a Component URI.
strUri The (optional) URI of the Component to track. Set this parameter to "" if you want to track a URL.
strTitleAn (optional) string that describes the tracked Component or URL. This string will be displayed in the Outbound E-mail statistics screens. Set this parameter to "" if you want the Outbound E-mail statistics screen to display the URL or URI of the tracked

Example Template code

<a href="[% WriteOut OutboundEmail.GetLinkTrackingURL( _
 "http://www.tridion.com/discount.html", "", "Discount Page") %]">
 Click here to see our special discount offer!</a>