Methods

Warning

Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don’t know these languages, contact your website developer or webmaster.

Name

Description

addFileExtension

Adds file extension support

extLink

Sending information about a click on an external link

file

Sending information about a file download

firstPartyParams

Sends contact information of site users

firstPartyParamsHashed

Sends contact information of site users with data self-hashing support

getClientID

Gets 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 Session parameters report lets you specify additional user information you wish to track

reachGoal

Conversion

setUserID

Transmitting the user ID set by the site owner

userParams

Method for transmitting user parameters to the User Parameters report

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.