Marketing Automation, Salesforce Marketing Cloud, SFMC Tips & Tricks

SFMC TIP | Invalid links in HTML

SFMC tips and tricks

When the HTML template is used (loading your own HTML code) all the links that use query parameters (?a=b) will resolve to invalid links when they redirect upon user click. This happens when web analytics UTM tags are being attached to the delivery.

To resolve this issue all the links with additional query parameters has to be written to the href tag with use of AMPScript RedirectTo function.

<a href="%%=RedirectTo("https://martechnotes.com?parameter=1")=%%">Click here</a>

When you are using regular email template where you drag and drop components, the same is happening when you are using URL as variable or attribute in e.g. button component, such URLs will resolve to invalid ones.

Easy and same fix. Just wrap your url in RedirectTo

Redirect to when URL is attribute or variable

Oh hi there 👋
I have a FREE e-book for you.

Sign up now to get an in-depth analysis of Adobe and Salesforce Marketing Clouds!

We don’t spam! Read our privacy policy for more info.

Leave a comment

Your email address will not be published. Required fields are marked *