To ensure that clicks are tracked for a dynamic link created using AMPscript, the developer should wrap the link variable in a RedirectTo function and include an alias attribute for tracking purposes.
RedirectTo Function: This function helps ensure that the link click is properly tracked by Salesforce Marketing Cloud (SFMC). The function takes a URL and ensures that tracking parameters are appended correctly.
%%[ SET @dynamicLink = "http://example.com/?id= " + AttributeValue("SubscriberID") ]%% Click Here
[: Salesforce AMPscript Functions - RedirectTo, Alias Attribute: Including an alias attribute provides a way to label the link, which assists in tracking and reporting., Click Here , Reference: Salesforce Documentation on Link Alias, , , , , , , ]
Submit