Answer the question
In order to leave comments, you need to log in
How to add a sign of a user registered on the site to the i.metrics report?
I can not get data on the type of users that I give from the site.
I do as it is written here
https://yandex.ru/support/metrika/reports/visit-pa...
upgraded the counter code by adding the user_group parameter, where it can have a value from 0 to 2 (guest, registered, site editor), which is substituted into the template on the server.
here is the updated snippet of counter code:
try {
var yaParams = {'user_group': '1' || 'null'};
w.yaCounterXXXXXXXX = new Ya.Metrika({id:XXXXXXXX,
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
params: window.yaParams||{}});
} catch(e) { }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question