For tracking and attribution purposes we need to add tracking parameters for each of our links pointing to any of our websites.
For example:
http://www.google.com/?tracking=EMAIL_DEPARTMENT&code=EMAIL_DEPARTMENT
Currently, I am simple doing the following:
%%[
SET @url = "http://www.google.com/"
SET @trackingCode = "EMAIL_DEPARTMENT"
SET @tracking = concat("?tracking=", @trackingCode)
SET @LINK1 = concat(@url,@trackingCode)
]%%
<a href="%%=RedirectTo(@LINK1)=%%">Buy Today</a>
The problem with my current solution is that I have to change the code for each link.
I would like a solution where I can simple do this:
<a href="http://www.google.com">Buy Today</a>
And AMPscript would return this:
http://www.google.com/?tracking=EMAIL_DEPARTMENT&code=EMAIL_DEPARTMENT
Any suggestions would be really appreciated? Thanks