How to track total time spent in view? #584
ParthGandhi
started this conversation in
General
Replies: 2 comments 9 replies
-
@thebuilder any thoughts on how to do this? Would appreciate it if you could point me in the right direction. Thank you! |
Beta Was this translation helpful? Give feedback.
1 reply
-
@ParthGandhi Hey there, did you end up using this method to track how long a component is visible for? I want to send impression events only when the component is on the screen for over a second or so |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to track which sections of a dynamic page are most viewed. I've been able to track when an element enters/exits the view, but unsure how to track the total time a component is in view?
Specifically, where should I store the enter/exit timestamps? And how to handle the case where an element comes into view right after it exits, but possibly before the previous callback is run?
Beta Was this translation helpful? Give feedback.
All reactions