Allows a client to specify the target of a link originate from a complete URL stored in an attribute, data extension field, or variable. Only use this function in HTML emails within the href attribute of an <a> tag. In text emails, include the prefix http:// and ensure you use no spaces within the parentheses. In order to retain tracking information for clicked links, you must include the anchor tags <a></a> within the email itself and not the link retrieved via AMPscript. This function only provides tracking information for clickable links within an email message. You cannot retrieve tracking information when using this function with URLs stored in a variable or used as part of a query string parameter.


1stringRequiredURL sting or variable containing URL string to which to redirect

Given the data extension Vacation_Deals:


System returns:

Where Flight Deals links to and Car Deals links to You can also use this function to include data extension values at the end of a hyperlink within an email message, as shown in the example below:

System returns: