trackLinks

Attention.

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

To manage tracking outbound links, 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 links 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

ym(XXXXXX, 'trackLinks', false);

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

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