It's querying the store to see if the previous pageview exists, but because of buffering, the previous page view may not have been committed yet. This code also needs to somehow check the buffered contents or figure out a way to see if the pageview exists but has not been committed yet.
This skews the realtime visitor count, bounce rate, and anything else depending on active page views.
It's possible to have multiple page views with
IsFinished
marked as 0 if you switch between pages fast enough.This is due to the code here: https://github.com/usefathom/fathom/blob/master/pkg/api/collect.go#L89
It's querying the store to see if the previous pageview exists, but because of buffering, the previous page view may not have been committed yet. This code also needs to somehow check the buffered contents or figure out a way to see if the pageview exists but has not been committed yet.
This skews the realtime visitor count, bounce rate, and anything else depending on active page views.