S
S
somneart2013-02-07 16:03:43
Google Analytics
somneart, 2013-02-07 16:03:43

How to calculate the time on the site if it is one-page?

Colleagues, tell me how to calculate the time spent on the site, if it is a one-page site and there were no actions on it?

As far as I understand, both Google Analytics and Yandex.Metrica consider time on site to be 0 by default in this case.

Thank you!

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nikolai Vasilchuk, 2013-02-07
@Anonym

Periodically send an AJAX request from the client to the server.

U
un1t, 2013-02-07
@un1t

The metric sends pings every 15 seconds, so it will count for a one-pager without any problems.

A
Alexander Kouznetsov, 2013-02-07
@unconnected

I'm very curious - why?

T
TheAlien, 2013-02-07
@TheAlien

In Yandex.Metrica in Webvisor, there is a time measurement on the site. On my one-page site, everything counts perfectly (column "Duration").
image

K
kevindoth, 2013-02-11
@kevindoth

Yes, in my opinion, the asynchronous code in both stats already normally sends periodic requests for you))

J
Jacob, 2014-09-14
@Logrise

If time doesn't count, create events on the page (button clicks, links... like "read more" or something like that). If at least one event works, there will be no failure and the time will already be counted.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question