Enabling the extended call tracking window


Access tokens will not be accepted in URL parameters starting February 13, 2019. To continue working with the Yandex.Metrica API, set up authorization by passing the token in the HTTP header.

The outdated authorization method will be temporarily disabled on January 23, January 30, and February 6 for maintenance. Authorization using URL parameters will be unavailable on these dates.

Enables the extended call tracking window for the tag. This method extends the time when session data in Yandex.Metrica can be changed or supplemented with information about a call.

By default, new session data can be added within 16 hours after the session ends. This allows for adjustments to the session data in the Yandex.Metrica database when necessary (for instance, new pageviews can be added and the session length can be corrected). After 16 hours, session data can't be changed.

More than 16 hours often passes between offline and online actions, so the period for calculating conversions must be increased to allow offline data to be added to sessions. This extended period is 21 days. It means that data about a call will be added to a session in Yandex.Metrica if less than 21 days has passed since the user's site session when the file with call data is uploaded.

Attention. The extended call tracking period only applies to sessions that Yandex.Metrica registered after the API request was sent. The period for changing session data increases gradually: on the next day after enabling the option, it is equal to one 24-hour period, and it continues to grow until it reaches the maximum length in 21 days.

Calls are attributed to the user's session that preceded the call. For example, consider a user who had three sessions on March 1, March 5, and March 11. On March 10, the user placed a call to the site's call center, and this date was recorded by the call tracker. The data was sent to Yandex.Metrica on March 20, so the call placed on March 10 was added to the user's session on the site from March 5.

This option can't be enabled in the Yandex.Metrica web interface – it is only available via the API.

  1. Request syntax
  2. Response format

Request syntax

counterId — ID of the counter that you want to enable the extended call tracking period for.


Request example

POST https://api-metrica.yandex.net/management/v1/counter/{counterId}/offline_conversions/calls_extended_threshold?

Response format

    "success" :  < boolean > 
Parameters Description
success Result of performing action.