Answer the question
In order to leave comments, you need to log in
How to track session time in Yandex Metrica?
Never did this. The task was to create a goal that would record the number of people who are on the site for more than one minute. I found an option on Google that will track this through
setTimeout('yaCounterXXXXXX.reachGoal("TARGET_NAME");', ВРЕМЯ_В_МИЛИСЕКУНДАХ);
Answer the question
In order to leave comments, you need to log in
Is it the goal?
You can use just a segment
. If the goal, then make a script that, when loading any page, checks the value in cookies / sessionstorage.
If there is nothing there, it records the entry time there.
The value is checked by interval. When reached - record the event, clear the timer
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question