Use the linkName
variable to determine the dimension item of custom links, download links, or exit links when running the next tl()
method.
Se essa variável estiver em branco, o AppMeasurement reverterá para a variável linkURL
.
Você pode definir o campo Nome do link ao configurar uma regra para enviar um beacon.
s.tl()
, que revela o campo Nome do link.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). Pode conter até 100 bytes.
Essa variável é o terceiro parâmetro do método tl()
e geralmente não precisa ser definida como uma variável independente. No entanto, você pode usar a variável linkName
se não quiser definir valores como argumentos no método tl()
.
s.linkName = "Example custom link";
As duas chamadas de rastreamento de link de exemplo a seguir são funcionalmente idênticas. São métodos diferentes para disparar a mesma ocorrência de rastreamento de link.
// 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");