New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visit times could be more accurate when using the heartbeat timer Ping feature #9504
Comments
for 2) |
demo seems to be running v2.16b1 |
Thx for that, looks like something we should look into on DB level etc. @mattab |
hmm first thought the only reason can be pretty strange |
another strange finding:
|
btw: would be good to have e.g. custom alerts defined for things like this in piwik's demo and keep on deploying latest betas to demo. hmm can someone give me a hint how to define an alert for a huge change of "average visit duration" within custom alerts plugin? |
also new visits from today are tracked as too long (and are shuffled in ordered) |
FYI: I had a look in the database and in the access logs for one visitor and eg the total time of 7h 50minutes was actually correct for that user. There were thousands of ping requests over several hours for that visitor and also the database entries seem valid. I tested manually whether it stops tracking when the tab is no longer focused / opened and it worked. |
@hpvd if you can reproduce an issue that PIwik is over-tracking, let us know the steps / browsers to use to reproduce. our tests show that it "should" work as expected (track only in active tab). It looks like a lot of users may open a forum thread and leave it there open, for hours! Maybe in our ping mechanism we should check that the mouse or some keyboard keys are actually used, before sending a ping? maybe there is no advantage to send a ping if keyboard/mouse are idle... |
Also I presume most useful feature would be to really increase ping interval over time as I had eg like 4000 ping requests for one page for the visitor that I analyzed which might not be needed to be that much :) see #9423 |
many thanks for looking at this. Just digging a little deeper: First shot-> first result: |
but still counting => sensing if there is any mouse or keyboard movements in tracked browser tab before sending each ping seems to be an abolute must |
maybe a possible easy first solution for tracking correct visit-time: Maybe this helps to make a very first try: |
You're right! See comment #9504 (comment) and following. When opening browser tab in new window with eg right click and even though the tab might have never been opened we do send ping requests. We should possibly aim to work on this for 2.16.0 |
good to hear! |
Hi @hpvd demo was updated with our latest beta |
just to show the actual progress: => what do we expect to see here? |
to see the results of made changes faster by asap adaption of usage by all visitors, |
Hi @hpvd we've released 2.16.0-RC1 and deployed on demo - how does it look to you? |
Hi @mattab hmmm the only thing which would not look very plausible to me is a jump of +-100% in average |
please have a look on new #9645 which may influence avarage time too... |
The times on page are expected to be pretty much the same as without heartbeat apart from the last action. The last action should have a longer time on page. With the current implementation it is expected that it should be max around 30 minutes for the last action (depends on a config entry and the type of the last action). How much longer the times are depends on the users and their behaviour. |
Average time before heart beat was about 2 minutes. When visitors leave tab open for a while at the end of their visit it might be ok that it increases to say 6 minutes? (Also again piwik.js might be still cached for some users I haven't checked). It would be interesting to see what the median value was as this one might be more accurate here. When having a low visit duration of say less than 3 minutes which is probably the case for most websites a few users can increase the avg visit duration a lot just by having the tab open for 30 minutes. This might be less of a problem the more visits there are. Would be neat to offer users a median graph as well :) |
Also in this case the forum has many visits with only one pageview. Meaning the avg visit duration was rather very low for many visits. Now we are actually able to track the duration also for just one pageview so it might be expected to have 3 times higher avg visit duration. |
yes median graph would be interesting. But shouldn't the "long open last pages of visits" be compensated by the now tracked "only one page visits" (which have a short visit time in total)? |
or were this "only one page visits" put into caculation with 0s in the past ? |
I presume so |
Hi @hpvd if you find any issue with heartbeat logic or reporting, please create new issue, cheers |
strange visit times - also in demo
Three cases:
4-14HOURS
wow - these visitors really stay for a long time
=> is the content that interesting???
or is the new heartbeat ping active (see Enable by default the Heart beat timer to process a more accurate time on page and visit duration #8225) and maybe also working when page is in background in browsers with several tabs opened?
NO visit time
=>to fast to track?
If so one should show a hint
(to make it consistent)
SEVERAL MINUTES
this one looks ok
=> is it?
Please see attachment for details
The text was updated successfully, but these errors were encountered: