Page scroll depth #121
Replies: 9 comments 24 replies
-
|
Would be great to get this feature. Especially for blog pages. Any updates? |
Beta Was this translation helpful? Give feedback.
-
|
That would be a very nice feature to add, and such an easy one to implement I believe. Here's a scrolling depth tracking script as reference: var scrollDepth = 0;
window.addEventListener("scroll", function (event) {
var scrollPosition = this.scrollY;
var maxScrollHeight = document.documentElement.scrollHeight - document.documentElement.clientHeight;
if(maxScrollHeight == 0) {
return; // Page too short to scroll
}
var scrollPercentage = Math.round(scrollPosition / maxScrollHeight * 100);
console.log("Scroll position:", scrollPercentage, "%");
if(scrollDepth < scrollPercentage) {
scrollDepth = scrollPercentage;
console.log("Scroll depth (max):", scrollDepth);
// TODO : notify Plausible that the user has scrolled deeper
}
});You could add a debounce mechanism if you want to optimize the number of events sent to the server (ex: send the new depth after the user has sit still for 2 seconds). On the backend side we simply need to create a new entry in the database for this value and display it in the Top pages detailed table. What do you think ? |
Beta Was this translation helpful? Give feedback.
-
|
Hey there, this is a great request. Are there any updates on that? @metmarkosaric thx a lot in advance. |
Beta Was this translation helpful? Give feedback.
-
|
thanks! there are no short term plans for this. we are a small team with limited development resources so need to focus on most frequently requested features first. currently the focus is on introducing a google analytics stats import. when there's an update on page scroll depth, we'll post it here. thanks for understanding! |
Beta Was this translation helpful? Give feedback.
-
|
Hi, Would love to have "scroll" as a goal event, regardless of scroll depth. It is native in google analytics, I am looking for a similar native feature. Is it possible today with a bit of custom code? Is it on your roadmap? Many thanks, Alex |
Beta Was this translation helpful? Give feedback.
-
|
Any update on this ? |
Beta Was this translation helpful? Give feedback.
-
|
We are suuper keen on this feature too. Happy to contribute code for it. 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
Update: Scroll depth tracking is now live https://plausible.io/docs/scroll-depth |
Beta Was this translation helpful? Give feedback.
-
|
I know we don't track users (Privacy-first), and am wondering if this feature could be used for rewarding authors (depending on scroll length + time on page = payment to authors....is this something of interest to anyone or is this unacceptable use? |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
"Show how far down people scroll on a page as a percentage."
Update: Scroll depth tracking is now live https://plausible.io/docs/scroll-depth
Beta Was this translation helpful? Give feedback.
All reactions