# Events when scrolling - track pageviews

**URL:** https://meta.discourse.org/t/events-when-scrolling-track-pageviews/106809
**Category:** Development
**Created:** [17.Январь.2019 14:30:08 UTC](https://meta.discourse.org/t/events-when-scrolling-track-pageviews/106809 "2019-01-17T14:30:08Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jono\_Brain2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jono_brain2/32/106550_2.png) [@Jono\_Brain2](https://meta.discourse.org/u/Jono_Brain2)
#### Post date: [17.Январь.2019 14:30:08 UTC](https://meta.discourse.org/t/events-when-scrolling-track-pageviews/106809/1 "2019-01-17T14:30:08Z")

</div>

Hi

I want to trigger Tag Manager when a user scrolls the topic list and when scrolling down a topic.

Ideal would be at a set point e.g. every 10 topics and for posts when they scroll past each post.

I can’t see how you can do this. I have tried using:

api.onAppEvent(‘topic:scrolled’…

But this is constantly triggered how do I calculate when they go past each post?
