Traffic 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.

Dimensions

ga:referralPath

The URL path that links to your site.

Data type: string.

ga:fullReferrer

The full URL of the linking resource, including the host address and the full path of the URL.

Data type: string.

ga:campaign

The ad campaign's UTM tag (utm_campaign). If a tag hasn't been set, a (not set) value is returned.

Data type: string.

ga:source

An ad campaign's UTM tag (utm_source). If a tag hasn't been set, the source domain is shown. The port number can also be shown

If the user didn't come to the site by a link and instead directly, then the (direct) value is returned.

Data type: string.

ga:medium

An ad campaign's UTM tag (utm_medium).

If a user referral came from a search engine, an organic value is returned.

If the user referral didn't come from a search engine, then a referral value is returned.

If the user came directly to the site and the document.referrer parameter is empty, then a value of (none) is returned.

Data type: string.

ga:sourceMedium

Combination of the dimensions ga:source and ga:medium.

Data type: string.

ga:keyword

The ad campaign's UTM tag (utm_keyword).

If the user arrived via a search engine, it returns a list of keywords used to find your site. Otherwise, returns the (not set) value.

Data type: string.

ga:adContent

The ad campaign's UTM tag (utm_keyword). If a tag hasn't been set, a (not set) value is returned.

Data type: string.

ga:socialNetwork

The name of the social network that the referral came from. For example, Facebook, VK, etc.

Data type: string.

ga:hasSocialSourceReferral

Referrals from social networks. Allowed value: Yes or No.

Data type: string.

Metrics