Connecting to the web analytics service
To collect Turbo page statistics, add a web analytics system using one of the following methods:
If you have already linked the tag via the RSS feed, delete the turbo:analytics elements from the feed before linking the tags via Yandex.Webmaster interface.
- Go to thepage.
- Click Add a tag. Choose the web analytics system and specify the tag ID.
Supported web analytics systems:
- {referrer} — Referer.
- {referrerStarsEscaped} — Referer for Mediascope (with escaped character *), to connect this system without specifying the ID.
- {pageTitle} — Page title.
- {originalURL} — The original page URL.
- {screenWidth} — The screen width.
- {screenHeight} — The screen height.
- {random} — Pseudorandom number (a new value is generated for each occurrence in the string).
- {requestId} — Request ID (one per page).
- {clientId} — Client ID (one per user's browser).
Yandex.MetricaSpecify the tag number. For example, 123456.
To make it easier to work with reports, use the same tag on the main site and on its Turbo pages. Learn more about viewing Turbo page reports in Yandex.Metrica Help.
LiveInternetIf the tag is only installed on one site, leave this field blank.
If the tag is installed on multiple sites, specify the name of the tag. For example, example-host.
Google AnalyticsSpecify the tracking ID. For example, UA-12340005-6.Mail.RuSpecify the tag ID. For example, 123456.Rambler Top 100Specify the tag ID. For example, 123456.Mediascope (TNS)Project ID tmsec with the “- turbo” ending. For example, if the example_total tag is installed for regular site pages, then specify example_total-turbo for the Turbo pages.OtherIf your web analytics system supports installations as a one-pixel image, you can add it to the Turbo page.
You can also include additional parameters in the URL to send them to the web analytics system:Example:
http://some.doma.in/{screenWidth}*{clientId}/{random}/{originalURL}?title={pageTitle}
- Click Save.
If you already linked the tag via Yandex.Webmaster, disable web analytics in Yandex.Webmaster before linking the tag via the RSS feed.
To connect a web analytics system using an RSS feed, pass information about the tag in the turbo:analytics element:
... <channel> ... <turbo:analytics></turbo:analytics> ... </channel> ...
Copied to clipboard
To count the traffic in several web analytic systems, connect several tags.
Supported web analytics systems:- Specify additional parameters you want to send to the web analytics system in the URL:
- {referrer} — Referer.
- {referrerStarsEscaped} — Referer for Mediascope (with escaped character *), to connect this system without specifying the ID.
- {pageTitle} — Page title.
- {originalURL} — The original page URL.
- {screenWidth} — The screen width.
- {screenHeight} — The screen height.
- {random} — Pseudorandom number (a new value is generated for each occurrence in the string).
- {requestId} — Request ID (one per page).
- {clientId} — Client ID (one per user's browser).
<turbo:analytics type="Yandex" id="Tag number" params="{ 'param' : 'val' }"> </turbo:analytics>
Copied to clipboard
type
*id
*params
* Required
You can also send the source page address and the Turbo page header to Yandex.Metrica. To do this, in the item element, specify the turbo:source and turbo:topic elements.
Learn more about setting up goals and viewing reports in Yandex.Metrica Help.
<turbo:analytics type="LiveInternet"></turbo:analytics>
Copied to clipboard
If the same tag is used for multiple sites, add the params attribute with the tag name.
<turbo:analytics type="LiveInternet" params="Tag name"></turbo:analytics>
<turbo:analytics type="Google" id="ID"></turbo:analytics>
Copied to clipboard
type
*id
** Required
Connection example:
<turbo:analytics type="Mediascope" id="ID"></turbo:analytics>
Copied to clipboard
type
*id
** Required
<turbo:analytics type="custom" url="http://some.doma.in/{screenWidth}*{clientId}/{random}/{originalURL}?title={pageTitle}"> </turbo:analytics>
Copied to clipboard