這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Scroll Depth

外掛說明

WP Scroll Depth is a simple WordPress plugin that loads and calls the Scroll Depth jQuery script.

Google Analytics doesn’t capture user scrolling information by default. This could be very important information if you have tall, scrolling, pages. Scroll Depth sends this information as Google Analytics events.
Update: Google Tag Manager now includes Scroll Depth and Element Visibility triggers. If you are running GTM, you don’t really need this plugin.

From the Scroll Depth website:

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:

  • Simple plugin – you don’t need to modify your theme to load the JavaScript
  • Implements basic scrolling events (25%, 50%, 75%, 100%) with no additional configuration
  • Admin Panel to configure all available options

Requirements:

  • Google分析
  • jQuery 1.7 or higher

Since this plugin sends Google Analytics Events, you must be running Google Analytics to see any results.

While jQuery is probably already available in your theme, in the unlikely event that it isn’t, you can use a plugin like WP jQuery Plus to add it to your site.

螢幕擷圖

  • The WP Scroll Depth admin panel.
  • Google分析 Real-Time Events.
  • Google分析 page scroll percentages.

安裝方式

從WordPress.org安裝

  1. Log into your website administrator panel
  2. Go to Plugins page and select “Add New”
  3. Search for “WP Scroll Depth”
  4. Click “Install Now” on the SearchCloak entry
  5. Click Activate Plugin

Install via ftp

  1. Download the plugin zip file using the button above
  2. Log into your website administrator panel
  3. Go to Plugins page and select “Add New”
  4. Click “Upload”
  5. Choose your recently downloaded zip file
  6. Click the Install Now button
  7. Click Activate Plugin

常見問題集

First: Confirm the code is being added to your pages:

Load a page and view source. Look for “scrolldepth.” You should find:

  1. The line in the <head> section where scrolldepth.min.js is loaded.
  2. A script block in the <head> section where jQuery.scrollDepth(); is being called.

If you don’t find the code there, then the plugin hasn’t loaded. Check the usual suspects about malfunctioning plugins.

Second: Make sure the code is executing:

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.

Third: Confirm events are being sent.

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.

使用者評論

2016 年 11 月 11 日 1 則留言
I am a newb to event tracking, but I do use analytics and I have a G analytics plugin working. So do I just install this plugin and wait for something to magically appear on over on Analytics in the event area? I started using another plugin that does clicks, so I was happily surprised to see that it magically started tracking individual outbound link clicks, so is this plugin kind of like that too? Or should I be jamming code in weird places? Yours Newb-ly, Dave
2016 年 9 月 3 日
So simple and easy to set up and start tracking event in Google Analytics. Also very easy to use with Google Tag Manager to build some powerful tags.
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈WP Scroll Depth〉的開發相關工作。

參與者

〈WP Scroll Depth〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈WP Scroll Depth〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.5.1

  • Added load_plugin_textdomain() for localization.

1.5.0

  • Updated localization hooks for string constants
  • Incorporated support for gtag version of Google Analytics

1.4.2

  • Tested with WordPress 4.9.6
  • Added privacy policy data collection information

1.4.1

  • Tested with WordPress 4.9
  • Added notes about Google Tag Manager

1.4.0

  • Tested with WordPress 4.8
  • Update scrolldepth library to version 1.0 (2016 12 17)

1.3.4

Updated “Tested up to” version

1.3.3

  • Removed default value for gaGlobal

1.3.2

  • Fix version number in plugin

1.3

  • Reformat readme.txt
  • Try to force new version number

1.2.1

  • Fix readme.txt
  • Add missing screenshots
  • Add missing test in scrolldepth library

1.2

Updated scrolldepth library to version 0.9 (2015 11 19)
Added new options:
– gtmOverride
– gaGlobal
– eventHandler
Tested with WordPress 4.4

1.1

Updated scrolldepth library to version 0.7.1 (2014 12 19)
Tested with WordPress 4.1

1.0

Initial commit