simpleanalytics / roadmap

File you bugs and feature requests here
24 stars 2 forks source link

Time on page does not show when referral is selected #553

Closed adriaandotcom closed 3 years ago

adriaandotcom commented 3 years ago

With filtering on referrer it doesn't show time on page:

image

With utm-source or other filters seem to work fine.

jibsaramnim commented 3 years ago

Could this be because the referral changes for a subsequent click from a remote referral to a self referral (istheshipstillstuck.com on first visit, simpleanalytics.com on every subsequent click), which means it can't calculate the time on page as no "end" hits are found matching the referral filter criteria? If so, I wonder how we can make the ES query work to only care for referrals on first-but-not-subsequent hits, do you have any ideas that might help steer me in the right direction?

adriaandotcom commented 3 years ago

Isn't the referral part using a different endpoint in ES? Maybe we forgot to add the duration_seconds:median to it? Let's not spent too much time on this for now. Roles are more important :)

jibsaramnim commented 3 years ago

@adriaanvanrossum I'm not sure if this has been fixed (somehow?) already, but could you try again on your end? It seems like ToP is showing up when filtering on referrals too, at least in my testing here locally and on live :thinking:

adriaandotcom commented 3 years ago

I think it's fixed!