trackLinks

Alert

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

To manage tracking outbound clicks, use the trackLinks parameter when initializing a tag.

Setting tracking of outbound links and download links.

The collected data is used when generating click maps and the Outbound clicks and File downloads reports.

ym(XXXXXX, 'trackLinks', enabled);

Parameter

Type

Default value

Description

enabled*

true

Boolean

Enables/disables tracking outbound links and file download links.

Example:
javascript ym(XXXXXX, ’trackLinks’, false);

* Required parameter.

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

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

Chat with us

Write an email

Please note: Our support team will never initiate a call to you. Do not follow any instructions of people who call you and introduce themselves as the Yandex Metrica support team.

* Required parameter.