Send your event data from RudderStack to Yandex.Metrica.
5 minute read
Yandex.Metrica is a web analytics platform that lets you get an in-depth understanding of your audience’s behavior and use the insights to drive business growth.
Find the open source code for this destination in the GitHub repository.
Once you have confirmed that the source platform supports sending events to Yandex.Metrica, follow these steps:
From your RudderStack dashboard, add the source. Then, from the list of destinations, select Yandex.Metrica.
Assign a name to your destination and click Continue.
Connection settings
To successfully set up Yandex.Metrica as a destination, you need to configure the following settings:
Tag ID: Enter your Yandex.Metrica tag ID.
Enable Clickmap: Enable this setting to collect data for click mapping.
Enable Tracklinks: Enable this setting to track user clicks on the outbound links.
Enable Accurate Track Bounce: This setting enables the accurate bounce rate with a non-bounce event that is registered after 15 seconds (15000 ms). For more information on this setting, refer to the Yandex.Metrica documentation.
Container name: Enter the name of your Yandex.Metrica ecommerce data container that you set while creating a new counter. If not specified, RudderStack sets it to dataLayer by default.
Map your event name with supported Yandex.Metrica event name: Use this setting to map the RudderStack event to the Yandex.Metrica event selected from the dropdown.
Goal ID: Enter your Yandex.Metrica goal ID.
Client-side Events Filtering: This setting lets you specify which events should be blocked or allowed to flow through to Yandex.Metrica. For more information on this setting, refer to the Client-side Events Filtering guide.
Use device mode to send events: As this is a web device mode-only destination, this setting is enabled by default and cannot be disabled.
RudderStack uses Yandex.Metrica’s setUserID method to associate the userId with the user’s client ID during a particular session. To update the information of a user with a specfic userId, RudderStack uses the userParams method.
Supported mappings
The following table lists the mappings between the RudderStack attributes and the Yandex.Metrica properties:
The following mappings are applicable only for the purchase event:
RudderStack property
Yandex.Metrica property
properties.order_id Required
id
properties.revenue
revenue
Page
You can use the page call to send all page view data to Yandex.Metrica.
A sample page call is shown below:
rudderanalytics.page("Cart","Cart Viewed",{referrer:"https://www.mysite.com/search?q=bestseller",title:"The best seller items",url:"https://www.mysite.com/bestseller/1"});
RudderStack uses Yandex.Metrica’s hit method to send all page view data.
Supported mappings
The following table lists the mappings between the RudderStack attributes and the Yandex.Metrica properties:
RudderStack property
Yandex.Metrica property
context.page.url Required
url
context.page.title
title
context.page.referrer
referer
FAQ
What is the Yandex.Metrica container name? Where can I find it?
You can set your Yandex.Metrica data container name while setting up your counter for your website:
Where can I find my Yandex.Metrica tag ID?
To obtain your Yandex.Metrica tag ID, follow these steps:
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.