Guides

Scroll Depth Tracking

Glass tracks scroll depth for every page on your site.

What is Scroll Depth?

Scroll depth is how far a user has seen down a page.

It's expressed as a percentage of the total scrollable height of the page.

How is Scroll Depth calculated?

Scroll depth is calculated by taking the height of the viewport (i.e. the bottom pixel of the browser), plus the maximum scrolled pixels, and expressing it as a percentage of the total height of the page (including the offscreen elements).

The minimum scroll depth is therefore browser height / page height.

For pages that short enough to appear entirely without scrolling, the scroll depth is 100%.

Glass calculates the average scroll depth and presents it in the pages view.