Sources

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 the sources of site visits.

Template Report Dimensions Metrics
search_engines Search engines ym:s:<attribution>SearchEngineRoot, ym:s:<attribution>SearchEngine, ym:s:<attribution>SearchPhrase ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_search_phrases Keywords ym:s:<attribution>SearchPhrase, ym:s:<attribution>SearchEngineRoot ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_sites Sites ym:s:externalRefererPathLevel1Hash, ym:s:externalRefererPathLevel2Hash, ym:s:externalRefererPathLevel3Hash, ym:s:externalRefererPathLevel4Hash, ym:s:externalRefererHash ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_social Social networks ym:s:<attribution>SocialNetwork, ym:s:<attribution>SocialNetworkProfile ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_summary Sources, summary ym:s:<attribution>TrafficSource, ym:s:<attribution>SourceEngine ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_from From tags ym:s:<attribution>From ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_gclid gcl tag ym:s:<attribution>HasGCLID ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_openstat Openstat tags ym:s:<attribution>OpenstatService, ym:s:<attribution>OpenstatCampaign, ym:s:<attribution>OpenstatAd, ym:s:<attribution>OpenstatSource ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_u_t_m UTM tags ym:s:<attribution>UTMSource, ym:s:<attribution>UTMMedium, ym:s:<attribution>UTMCampaign, ym:s:<attribution>UTMContent, ym:s:<attribution>UTMTerm ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
adv_engine Ad systems ym:s:<attribution>AdvEngine ym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds