Metrica

extLink

Tip. Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don't have these skills, contact your website developer or webmaster.

Sending information about external link traffic.

The collected data is used for generating click maps and the External links report.

extLink(url[, options])

Parameter

Default value

Type

Description

url *
[no-highlight[

* Required parameter.

]no-highlight]

String

The URL of the destination page

options

Object

Field for the options object
options.callback

Type: Function

The callback function called after sending data about a file download

options.ctx

Object

The context accessed by the this keyword in the callback function

options.params

Object

Session parameters

options.title document.title

String

Title of the current page

* Required parameter.

Example

var yaCounterXXXXXX = new Ya.Metrika({id: XXXXXX});

//...

yaCounterXXXXXX.extLink('https://yandex.com');