Skip to content
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

Tracking userId session with multiply tabs records only last opened tab #13302

Open
olegandreyev opened this issue Aug 16, 2018 · 2 comments
Open
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@olegandreyev
Copy link

olegandreyev commented Aug 16, 2018

Hi Matomo team. I have an issue related to use case when the same user opens multiple tabs and heartbeat mode is enabled. The main problem is when I open new tab I call trackPageView. So new item will show on the tracker dashboard in this session row (same user - same session - but new page view) .
BUT when I focus previous tab it sends ping request to analytic server where the time is being added not to current tab (page view) but to the last opened one. So after that even if I close last opened tab and change focus between two previous tabs. The time will be assumed for the last opened tab (page view) which does not exist already)

So I expect behavior that the heartbeat will update a previous page view time and not only the last one :) What do you think about it? Maybe I do something wrong

@tsteur
Copy link
Member

tsteur commented Aug 16, 2018

Just FYI: that's a known issue. Not sure if there is an actual issue though. Not sure if it will be worked on too soon re possible performance problems when updating the correct action.

@Findus23 Findus23 added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 24, 2020
@sgiehl sgiehl added Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Nov 13, 2022
@KarthikRaja1388
Copy link

KarthikRaja1388 commented Feb 29, 2024

We have a cloud customer reported the same issue. Do we have any update on this?

Customer's request:
Recently we have been struggling with the precision of the "Time on page" tracking data. We thought that enabling the Matomo "heartbeat" feature as described here would track visit times correctly even if users switch between tabs:
https://developer.matomo.org/guides/tracking-javascript-guide#accurately-measure-the-time-spent-on-each-page

But that doesn't seem to be the case - when opening multiple tabs, the time spent on all tabs is effectively added to the last active tab. This seems to be the same issue as the one described in this bug report from 2018:
#13302

Do you know if there are plans for making these metrics more precise? It would be quite important for us since quite a few users are using tabs, and the time spent on a document is usually a good indicator for this document being relevant to the user, and therefore for further improving the search feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

6 participants