GetLinkTrackingURL()
Syntax
Function GetLinkTrackingURL(
Optional ByVal strHttpUrl As String, _
Optional ByVal strUri As String, _
Optional ByVal strTitle As String) As String
Parameters
| Parameter | Description |
|---|---|
strHttpUrl | The (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. |
strTitle | An (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 |
Description
This method transforms a URL or a Component URI into a trackable link. If the e-mail recipient clicks the link, he or she is not only redirected to the original URL or Component, but Outbound E-mail also tracks the clicking of the link and adds it to the statistics.
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>