I
I
Igor Tarasov2015-01-09 21:03:21
Yandex.Metrica
Igor Tarasov, 2015-01-09 21:03:21

How to integrate user id with Yandex.Metrica?

I want to get detailed statistics on target users. There is a user id.
Now how to feed it to the Yandex counter and how to get statistics on the user ids I'm interested in.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Nemiro, 2015-01-09
@AlekseyNemiro

Today I also came up with such an idea :)
So far I haven’t thought about it well, but now I would send hits with user IDs to Yandex.Metrica .

id = 123;
username  = 'Вася';
pageUrl = 'Заглянул на вот эту страницу.html';
pageTitle = 'Такая вот страница';

try 
{ 
  yaCounterNNNNN.hit('http://дорогойпользователь/' + id + '/' + pageUrl, username + ' посетил: ' + pageTitle, null); 
} 
catch (ex) { }

This will allow you to view addresses visited by specific users in Yandex.Metrica (for example, in the Content -> Popular section) + will also be reflected in Webvisor .
I think it is also possible to automate the process of obtaining statistics, through the API .
These are just sketches of an idea, until I dive into this issue in detail.
Hits are often used for technical purposes.

A
Artyom Tsyplakov, 2015-02-12
@grimich

Can be passed in visit parameters. You can just pull out the keys from the metric;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question