Loyalty

Attention.

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.

These templates allow you to generate reports on visitors returning to the site.

Template Report Dimensions Metrics
loyalty_newness Time since first visit ym:s:daysSinceFirstVisitInterval ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
loyalty_period Session frequency ym:s:userVisitsPeriodInterval ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
loyalty_recency Time since penultimate visit ym:s:daysSincePreviousVisitInterval ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
loyalty_visits Total number of visits ym:s:userVisitsInterval ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds