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 site visits over time.

Template Report Dimensions Metrics
traffic Traffic ym:s:datePeriod<group> ym:s:visits, ym:s:users, ym:s:pageviews, ym:s:percentNewVisitors, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
conversion Conversion rate ym:s:goal ym:s:visits, ym:s:users, ym:s:pageviews, ym:s:sumGoalReachesAny, ym:s:anyGoalConversionRate
hourly Traffic by time of day ym:s:hour ym:s:visits, ym:s:users, ym:s:pageviews, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds, ym:s:visitsPerDay