跳到内容

Page Resonance

v1.0.3

Alex Hedström · 2026年11月1日 上架

Track and display page views for posts, pages, custom post types, and taxonomy archives with bot filtering and 24-hour per-visitor deduplication.

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

贡献者

Page Resonance is a lightweight, privacy-focused page view counter for WordPress. It tracks real human visitors while filtering out bots and preventing duplicate counts from the same visitor within a 24-hour window.

Features:

  • Track views for posts, pages, and custom post types
  • Track views for category, tag, and custom taxonomy archives
  • Bot and crawler detection (50+ known bot patterns)
  • Client-side human verification (requires mouse, scroll, touch, or keyboard interaction)
  • Rolling 24-hour deduplication per visitor
  • Privacy-focused: visitor identity is hashed with SHA-256 and raw identifiers are never stored
  • Admin statistics page sorted by highest views
  • Sortable “Views” column in posts, pages, and taxonomy list tables
  • Shortcodes for displaying view counts on the frontend
  • Template function for theme developers
  • Settings page to choose which post types and taxonomies to track
  • Plugin Recommendations — one-click install and activate for sibling plugins from the same author
  • Clean uninstall removes all plugin data

Usage

Shortcodes

Post/Page Views:

  • [pageresonance_page_views] — Displays the view count for the current post.
  • [pageresonance_page_views label="Views:"] — Adds a text label before the count.
  • [pageresonance_page_views icon="1"] — Adds an eye icon before the count.
  • [pageresonance_page_views id="123"] — Displays the view count for a specific post by ID.

Total Site Views:

  • [pageresonance_total_views] — Displays the total view count across all posts.
  • [pageresonance_total_views label="Total Views:"] — With a label prefix.
  • [pageresonance_total_views icon="1"] — With an eye icon.

Taxonomy Archive Views:

  • [pageresonance_term_views] — Displays the view count for the current category/tag archive.
  • [pageresonance_term_views id="5"] — Displays the view count for a specific term by ID.
  • [pageresonance_term_views label="Views:" icon="1"] — With label and icon.

Template Function

<?php echo pageresonance_get_views(); ?> — Returns the view count for the current post.

<?php echo pageresonance_get_views( 123 ); ?> — Returns the view count for a specific post.

<?php echo pageresonance_get_term_views(); ?> — Returns the view count for the current category or tag archive.

<?php echo pageresonance_get_term_views( 5 ); ?> — Returns the view count for a specific term.<h3>Privacy</h3>

Page Resonance stores view counts on your site. It does not send visitor data to an external server.

To avoid counting the same visitor twice within 24 hours, the plugin temporarily stores a one-way SHA-256 hash derived from the visitor IP address, browser user agent, and a site-specific WordPress salt. Raw IP addresses and user agents are not stored. A daily cleanup removes expired hashes, normally within 48 hours.

The same description is suggested in WordPress under Settings Privacy.

Plums

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

导航

说明

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

© 2026 Plums