• Hi, I’m currently trying to implement viritual pageviews by using wp scroll depth and google tag manager. So far i have managed to successfully create virtual pageviews for each section the users scrolles down to, my problem however is that it only fires when people scrolls down to it not when they scrolls up to it. example: when i scrolls down to an section, and then scrolls back up, it still shows the last scrolled section as active, how can i get it to fire a new pageview as i scrolls back into the section?

    Hope you can help me:)

Viewing 1 replies (of 1 total)
  • Plugin Contributor lonkoenig

    (@lonkoenig)

    Sorry we missed this request earlier.
    Are you using percentage or “elements to track?”
    If you scroll past an element and then back up, it won’t fire a second event for that element. Most users are just tracking which elements are being seen. Not the order in which they are seen.

    If users are jumping to section via navigation, you might be able to put events on your navigation.

    Before I discovered the ScrollDepth jQuery, I used the https://www.customd.com/articles/13/checking-if-an-element-is-visible-on-screen-using-jquery code to monitor is specific elements were visible on screen and fire events when the visibility changed.

    Good luck with your project.

Viewing 1 replies (of 1 total)
  • The topic ‘How to see when people scrolls back to element’ is closed to new replies.