Skip to content

R7K12 Integration with Yandex Metrica

“Yandex Metrica” is a free online service from Yandex designed to evaluate website traffic and analyze user behavior. At the moment, Yandex Metrica is the second-largest web analytics system in Europe. The “Yandex Metrica” tag works like a regular visit counter: JS code is installed by the webmaster on the website pages and collects data about every visit. The Yandex Metrica tag is also compatible with AJAX and Flash websites. The service is integrated with Yandex Direct and Yandex Market and lets you group site visitors by several parameters. Yandex Metrica measures website and online advertising conversion. When calculating conversion, the service estimates what share of site visitors reached a “goal”, that is:

  • reached a certain page, a visit to which can be regarded as achieving a result,
  • viewed a certain number of pages, which is an indicator of campaign success,
  • performed a certain action (clicking a button, downloading a price list, etc.).

Up to 200 “goals” can be set for a Yandex Metrica tag. Metrica lets you exclude unwanted visits (your own visits, visits from certain IP addresses or certain sources) and modify input data by removing specified parameters from URLs. Yandex Metrica provides data for the current day. Reports are updated once every 5 minutes. What do you need for this?

  1. Access to the Yandex Metrica tag that data needs to be sent to. When you connect the integration, the system will ask for authorization; you will need your login and code.
  2. Access to the R7K12 service. Sign-in through your Google account is required for security and for providing high-quality service.

Setting up the integration in R7K12

Sign in to the R7K12 end-to-end analytics system with a Google account that has access to R7K12. Select your project. Go to the “Integrations” tab and, in the “Analytics systems” section, select “Yandex Metrica”. You need to set up the transfer of event data from the R7K12 end-to-end analytics system to your Yandex Metrica account. Setting up the transfer of events:

  • inquiry;
  • request;
  • sale.

The “inquiry” and “request” events are sent to Yandex Metrica instantly. “Sales” are sent every day at 23:30. To create a webhook (event) transfer, click the “Create” button. In the window that opens, select the “Dynamic” event type, the “Inquiry” event, and the “Instantly” sending time. In the “Counter ID (main)” field, enter your Yandex Metrica tag number. To continue the setup and send data, you need to get a token — click the “Get token” button under the “Token” field. You will be taken to a Yandex service page that shows the token. Copy the token value and paste it into the “Token” field In the following fields under “Additional parameters”, you need to specify these settings, which differ for each type of inquiry:

  • Event for inquiries: give the goal a name that is clear to you; you will use it later to set up the goal in Yandex Metrica.

  • Event for target requests: give the goal a name that is clear to you; you will use it later to set up the goal in Yandex Metrica.

Select the “Dynamic” event type, the “Request” event, and the “Instantly” sending time. In the “Counter ID (main)” field, enter your Yandex Metrica tag number.

  • Event for transactions:

Copy the values from table 1 and paste them into the corresponding fields, as shown in the screenshot below. The set of parameters for the “sale” event: Table 1 - Names and values of additional sale parameters

ClientId CLIENTID YANDEX METRICA
Price REVENUE
Currency USD

Fields in which you need to select values from the list are shown in bold. For manual entry, select “Custom value” from the list; you will then be able to type text in the field.

Setting up goals in Yandex Metrica

Go to the Yandex Metrica interface via this link and select or create your Yandex Metrica tag. Go to the “Settings” tab. In the settings, select the “Goals” tab, then click “Add goal”. Make sure the “Conversion” tab is selected. Select “JavaScript event” and, in the “Name” field, enter the goal name that you previously set in the R7K12 settings for this event. In the goal ID field, enter the event value “recourse” (for the inquiry event) and click the “Add goal” button. To add a sale goal, repeat the steps for the inquiry goal, but in the name, specify the name for the sale event that you entered in R7K12. In the goal ID field, enter “purchase”. Breakdown of the events you want to send from R7K12 to Yandex Metrica:

  • For “inquiry” events, the ID is recourse.
  • For “request” events, the ID is target_lead.
  • For “sale” events, the ID is purchase.