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 (
The Web SDK does not exclude certain fields for link tracking calls. However, you can use the
onBeforeEventSend callback to clear or set desired fields before data is sent to Adobe. See Modifying events globally in the Web SDK documentation for more information.
This variable is automatically populated on the backend based on variables set in the interface, so it is always set in implementations using the Adobe Analytics extension.
If you set variables using the custom code editor, you must include the variable(s) in
linkTrackVars using custom code as well.
s.linkTrackVars variable is a string containing a comma-delimited list of variables that you want to include in link tracking image requests (
tl() method). Both of the following criteria must be met to include dimensions in link tracking hits:
s.eVar1 = "Example value";.
linkTrackVarsvariable. For example,
s.linkTrackVars = "eVar1";.
s.linkTrackVars = "eVar1,eVar2,events,channel,products";
The default value for this variable is an empty string. However, Adobe provided AppMeasurement code in the Code Manager where this variable is set to
"None". Valid values are any page-level variable that populates a dimension.
"None", no variables are included in link tracking image requests.
Avoid using the Analytics object identifier (
s.) when specifying variables in this variable. For example,
s.linkTrackVars = "eVar1"; is correct, while
s.linkTrackVars = "s.eVar1"; is incorrect.
The following link tracking function includes only
eVar2) in the image request sent to Adobe:
s.eVar1 = "Example value 1"; s.eVar2 = "Example value 2"; s.linkTrackVars = "eVar1"; s.tl(this,"o","Example Custom Link");