Solved

Event to determine if an element is visible on the page

  • 27 July 2022
  • 1 reply
  • 243 views

Badge

Is it possible to capture if an element is visible/present on the page?  trying to filter down page events that contain if this element is visible and compare click events against it. Is this where I would have to use Snapshots with javascript to detect if an element is visible? I am able to see click and change events on the element. 

 

Thanks!

icon

Best answer by skrotha 28 July 2022, 23:06

View original

1 reply

Badge

Hello!

Yes, you’re on the right track. You would attach a javascript snapshot to a pageview event. Within that snapshot, you could add in a line of code to check to see if that element is there and what to return in that case. I hope that’s helpful and can discuss further on a call! 

Reply