There’s an edged case in which we wouldn’t count some sessions. If you leave the website open in a tab overnight, and click on an internal link the next day (or after the session expires, 30 minutes), the new hit will have origin = same page, and then not being taken into account.
This happens since analytics_sources_mv only collects data where the source isn’t the current domain.
Expected Behavior
Count all sessions, including internal navigation, after the session expires. So the top_devices and top_browsers metrics are accurate.
To Reproduce
Leave a tab open for more than 30 minutes, and then click an internal link. A new session id will be generated, but the session won't be taken into account in top_devices and top_browsers endpoints since the origin is the same domain.
Module
Tinybird Data Project
Describe the Bug
There’s an edged case in which we wouldn’t count some sessions. If you leave the website open in a tab overnight, and click on an internal link the next day (or after the session expires, 30 minutes), the new hit will have origin = same page, and then not being taken into account.
This happens since
analytics_sources_mv
only collects data where the source isn’t the current domain.Expected Behavior
Count all sessions, including internal navigation, after the session expires. So the
top_devices
andtop_browsers
metrics are accurate.To Reproduce
Leave a tab open for more than 30 minutes, and then click an internal link. A new session id will be generated, but the session won't be taken into account in
top_devices
andtop_browsers
endpoints since the origin is the same domain.Details
No response
Thanks to @ErisDS for reporting 🙏