Namespace

stat_download

stat_download

Download links manager

Methods

static activate()

Activate download click tags from configuration map and run the hook

static addDownloadClickTags()

Activate download click tags from configuration map

Override window.open used for download links and run setCustomDownloadHook for specific purposes

static raiseDownloadClickTag(name, node)

Raise download click tag

Parameters:
Name Type Description
name string

Click tag name

node object

Clicked node

static reactivate(delay)

Scan again the page to apply Download clicks configuration on new nodes

Parameters:
Name Type Description
delay number

Delay before execution

static reInit()

Clean all status

static relayDownloadClickTag(node, eopt) → {boolean}

Intermediary function called to raise Download click tag (build contextual parameters)

Parameters:
Name Type Attributes Description
node object

Clicked node.

e object <optional>

Current event.

true if event must be continued, false to stop

boolean