Metrica

trackLinks

Attention! 

Outdated method. Supported for backward compatibility, but may be deprecated at any time. We strongly discourage its use.

To manage tracking external links, use the trackLinks parameter when initializing a counter.

Setting tracking of external links and download links.

The collected data is used when generating click maps and the External links and File downloads reports.

trackLinks(enabled)

Parameter

Type

Default value

Description

enabled *
[no-highlight[

* Required parameter.

]no-highlight]
true

Boolean

Enables/disables tracking external links and file download links.

Example

yaCounterXXXXXX.trackLinks(false);

* Required parameter.

To disable tracking information about clicks on particular external links, use the ym-disable-tracklink HTML class.

To mark an internal link as an external link, use the ym-external-link class.