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.

TemplateReportDimensionsMetrics
search_enginesSearch enginesym:s:<attribution>SearchEngineRoot, ym:s:<attribution>SearchEngine, ym:s:<attribution>SearchPhraseym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_search_phrasesKeywordsym:s:<attribution>SearchPhrase, ym:s:<attribution>SearchEngineRootym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_sitesSitesym:s:externalRefererPathLevel1Hash, ym:s:externalRefererPathLevel2Hash, ym:s:externalRefererPathLevel3Hash, ym:s:externalRefererPathLevel4Hash, ym:s:externalRefererHashym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_socialSocial networksym:s:<attribution>SocialNetwork, ym:s:<attribution>SocialNetworkProfileym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
sources_summarySources, summaryym:s:<attribution>TrafficSource, ym:s:<attribution>SourceEngineym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_fromFrom tagsym:s:<attribution>Fromym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_gclidgcl tagym:s:<attribution>HasGCLIDym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_openstatOpenstat tagsym:s:<attribution>OpenstatService, ym:s:<attribution>OpenstatCampaign, ym:s:<attribution>OpenstatAd, ym:s:<attribution>OpenstatSourceym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
tags_u_t_mUTM tagsym:s:<attribution>UTMSource, ym:s:<attribution>UTMMedium, ym:s:<attribution>UTMCampaign, ym:s:<attribution>UTMContent, ym:s:<attribution>UTMTermym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds
adv_engineAd systemsym:s:<attribution>AdvEngineym:s:visits, ym:s:users, ym:s:bounceRate, ym:s:pageDepth, ym:s:avgVisitDurationSeconds