How to not track an individual link in a Salesforce email

To track clicks in a SalesForce email template, you add the proprietary “custom” tag in the body of your HTML.

<custom name=”opencounter” type=”tracking”>

This will track all links.

But, what if you do not want to track individual links?

You can create a variable and assign the complete “a” tag to it, including the clickable text, and the closing “</a>”.

SET @Targetbase = ‘<a href=””>Do not track this link to Targetbase</a>’

In the body of the email, you just render the print the value of the variable.