UrlAppend

You must set “AutoTrack” to “true” to enable this feature.

When this parameter is set to “true” in the Bulk or Transactional API, it will automatically append the supplied string to the end of each URL in you HTML Template. This can be very useful for tagging links for use by your Web Analytics software.

Let’s suppose you are using the following HTML Template:

<html>
Click <a href="http://www.mycompany.com/purchase?product=123">here</a>
to purchase our great new product!
</html>

When you submit the API request, just set “AutoTrack” to “true” and “UrlAppend” to “utm_source=google&utm_medium=email&utm_campaign=campaign-123″ and you template will render as follows:

<html>
Click <a href="http://www.mycompany.com/purchase?product=123&utm_source=google&utm_medium=email&utm_campaign=campaign-123">here</a>
to purchase our great new product!
</html>

The UrlAppend string can also be personalized, so it can reference data in your recipient XML. For example, setting your UrlAppend string to “utm_source=${Recipient.Source}&utm_campaign=${Recipient.CampaignId}” is perfectly valid.