跳到内容

Mailpassed Real Visitor Filter for GA4

v1.0.0

Donrulez · 2026年11月19日 上架

Keep bot and ghost visits (the Lanzhou / Singapore zero-second Direct traffic) out of GA4: count a visit only after a human signal.

正在使用
10 以下
评分
暂无
累计下载
112
最近更新
2026年11月20日
需要 WordPress 5.8+已测试到 7.1.5PHP 7.4+

贡献者

Since late 2025 many sites see a flood of zero-second “Direct” sessions in Google Analytics 4, mostly from Lanzhou (China) and Singapore. Blocking countries or IP ranges does not remove them, because part of this traffic comes from headless browsers that run your pages, and part is sent straight to Google without ever touching your site.

Mailpassed Real Visitor Filter for GA4 handles both:

  • Counts a visit only after a human signal. The plugin loads the GA4 tag with automatic page views turned off, and sends the page view after the first scroll, tap, click, key press or mouse movement, or after the page has been visible for a few seconds (you choose). Automated browsers that announce themselves (navigator.webdriver) are never counted.
  • Tags every real hit. Counted visits carry the traffic_type parameter (default value human), and so does every later event on that page.
  • Lets GA4 drop the rest. A GA4 data filter set to “Include only” that value keeps your real visitors and drops everything else, including hits that never came from your site. The settings page walks you through creating the filter in Testing mode first.

Other features:

  • Balanced mode (interaction or N seconds visible, recommended) or Strict mode (interaction only).
  • Time only counts while the page is on screen.
  • Skips logged-in administrators (optional).
  • Warns if another Google Analytics or Tag Manager tag is still on your home page.
  • Lightweight: one small script, no database tables, no tracking of its own.

External services

This plugin connects to Google Analytics, a service provided by Google LLC, to measure visits to your site. That is its purpose.

  • What is loaded: the Google tag script (gtag.js) from www.googletagmanager.com, on every front-end page, once you enter a Measurement ID.
  • What is sent and when: after a human signal on a page (see Description), the Google tag sends a page view and later events to Google Analytics with the data the Google tag normally collects (page address and title, referrer, screen size, browser and device details, a cookie-based client ID, IP address processed by Google) plus the traffic_type value you set. Nothing is sent before that signal, and nothing is sent if no Measurement ID is set.
  • Google’s terms: https://marketingplatform.google.com/about/analytics/terms/us/
  • Google’s privacy policy: https://policies.google.com/privacy

You are responsible for informing your visitors and obtaining consent where your local law requires it.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums