Metrica

Methods reference

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.

Table 1. Ya.Metrika object methods

Name

Description

addFileExtension Adds file extension support
extLink Sending information about a click on an external link
file Sending information about a file download
getClientID Getting the user ID assigned by Yandex.Metrica
hit Manually sending pageview data for AJAX and Flash sites
notBounce Sending information about non-bounces
params The Visit parameters report lets you specify additional user information you wish to track
reachGoal Goal completion
replacePhones Replace the phone number on the site for the Target call tool at an arbitrary time
setUserID Transmitting the user ID set by the site owner
userParams Method for transmitting user parameters to the User Parameters report