Some implementations don’t want to include all variables in all link tracking image requests. Use the
linkTrackEvents variables to selectively include dimensions and metrics in
This variable is not used for page view calls (
Launch automatically detects events defined in the interface and includes them in link tracking hits.
If you set events in Launch using the custom code editor, you must include the event in
linkTrackEvents using custom code as well.
s.linkTrackEvents variable is a string containing a comma-delimited list of events that you want to include in link tracking image requests (
tl() method). The following three criteria must be met to include metrics in link tracking hits:
eventsvariable. For example,
s.events = "event1";.
linkTrackVars. For example,
s.linkTrackVars = "events";.
linkTrackEventsvariable. For example,
s.linkTrackEvents = "event1";.
s.linkTrackEvents = "event1,event2,event3,purchase";
The default value for this variable is an empty string. If this variable is not defined, all events are included in link tracking image requests. Note that Launch automatically populates this variable based on events set in the interface, so it is always set in implementations using Launch.
Avoid using the Analytics object identifier (
s.) when specifying events in this variable. For example,
s.linkTrackEvents = "event1"; is correct, while
s.linkTrackEvents = "s.event1"; is incorrect.
The following link tracking function includes only
event2) in the image request sent to Adobe:
s.events = "event1,event2"; s.linkTrackVars = "events"; s.linkTrackEvents = "event1"; s.tl(this,"o","Example Custom Link");