addListener

The addListener() method adds automatic link tracking to an HTML element. You can use it to track links added to a document after a page load.

Syntax

addListener(domElement)
Not available
Not available
Not available
Not available
Not available
Not available

Parameters

ParameterTypeDescriptionRequired
domElementDOM elementThe element you want to track as a link.Yes

Examples

To add a link to this element #dynamically-added-link:

_paq.push(["addListener", document.querySelector("#dynamically-added-link")]);
Not available
Not available
Not available
Not available
Not available
Not available