🔥 500+ people already subscribed. Why not you? Get our newsletter with handy code snippets, tips, and marketing automation insights.

background shape
background shape

Invalid links in email template

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 SSJS skill for you.

Sign up now to get an SSJS skill that can be used with your AI companion

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

Share With Others

The Author
Marcel Szimonisz

Marcel Szimonisz

MarTech consultant

I specialize in solving problems, automating processes, and driving innovation through major marketing automation platforms, particularly Salesforce Marketing Cloud and Adobe Campaign.

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

Buy me a coffee
Subscribe

Get exclusive tips, scripts and news

Choose your topics

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

Similar posts