开发者 |
firebrandllc
lonkoenig |
---|---|
更新时间 | 2018年12月7日 03:26 |
PHP版本: | 3.2.1 及以上 |
WordPress版本: | 5.0.0 |
版权: | MIT |
版权网址: | 版权信息 |
Scroll Depth is a small Google Analytics plugin that allows you to measure how far down the page your users are scrolling. It monitors the 25%, 50%, 75%, and 100% scroll points, sending a Google Analytics Event at each one. You can also track when specific elements on the page are scrolled into view. On a blog, for example, you could send a Scroll Depth event whenever the user reaches the end of a post. The plugin supports Universal Analytics, Classic Google Analytics, and Google Tag Manager. More information about Scroll Depth can be found in the Scroll Depth documentation. This version incorporates support for the new (Feb 2018) "gtag" Google Analytics snippet courtesy of Jalil Wahdatehagh. This code has been modified to more closely match the event structure used by the other GA implementations.Features:
Load a page and view source. Look for "scrolldepth." You should find:
<head>
section where scrolldepth.min.js is loaded.<head>
section where jQuery.scrollDepth();
is being called.Open the JavaScript/debugging console in your browser and load a page from your site. If there are no errors and the code is being loaded, then it's probably working. Time to test. If there's an error or conflict, please post in the support forums.
Open your Google Analytics and go to the Reporting tab for your site. Click on Real-time and then Events. Open another window or browser with your site. Scroll! Scroll like the wind! You should see events with a Category of "Scroll Depth." If you don't see these events, make sure your Google Analytics is properly set up and configured.