Substitution AMPscript breaking link when tracking is turned on
|Knowledge Article Number||000214110|
Learn why the Substitution AMPscript is breaking the link when tracking turned on.
AMPscript was not designed to be used as a substitution for link tracking similar to how profile attributes work.
Here's why it works when tracking is turned off:
When tracking is turned on we are not creating the link until it's time to redirect the link. When we track and then redirect the link, substitutions are not made until redirect time. One example of such a link:
When we redirect to this value at redirect time there's no way to know what the value for @mra_url was at the time of the email send, since the script is only evaluated when the email is built.