Show Menu
TOPICS×

linkName

Use the linkName variable to determine the dimension item of custom links, download links, or exit links when running the next tl() method.
If this variable is blank, AppMeasurement reverts to the linkURL variable.

s.linkName in AppMeasurement and Launch custom code editor

The s.linkName variable is a string that determines the dimension item for custom links, download links, or exit links (depending on what s.linkType is). It can hold up to 100 bytes.
This variable is the third parameter of the tl() method, and usually does not need to be set as a standalone variable. However, you can use the linkName variable if you do not want to set values as arguments in the tl() method.
s.linkName = "Example custom link";

Example

The following two example link tracking calls are functionally identical. They are different methods to accomplish the same link tracking hit.
// Set link tracking arguments as individual variables
s.linkType = "d";
s.linkName = "Example download link";
s.tl();

// Set link tracking arguments directly in the tl() function
s.tl(this,"d","Example download link");