RW PostViewStats Lite

外掛說明

RW PostViewStats Lite provides accurate view tracking for posts, pages, and custom post types — designed for performance and privacy.

🆓 Lite Version Features:
– 🔢 AJAX View Counting – Async requests for better performance
– 🚫 Duplicate Prevention – 12-hour cookie-based protection
– 📊 Sortable Admin Columns – Sort posts by views in admin list
– 📁 Data Cleaner – Remove view data by date or post
– 🌐 REST API Endpoint – Fetch view counts via /wp-json/rwpsl/v1/views/{post_id}
– 📌 Shortcode Support – Display views with [rwpsl_post_views]
– 🔒 Privacy Friendly – No IP addresses collected

⭐ Pro Version Additional Features:
– 🌍 Multisite Support – Network-wide tracking for WordPress Multisite
– 📈 Advanced Analytics – Detailed views reports and charts
– 📁 CSV Export – Export stats by date range or specific posts
– 🔔 Views Notifications – Get notified when posts reach view milestones
– 🎯 Custom Post Type Support – Enhanced CPT tracking options
– ⚡ Performance Optimizations – Cached views and batch processing

Documentation:
Full Documentation – Includes both free and pro version guides.

螢幕擷圖

安裝方式

  1. Upload the rw-postviewstats-lite folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Configure settings in Settings RW PostViewStats Lite (optional)

常見問題集

Can this plugin track views of custom post types?

Yes. By default, it tracks the ‘post’ and ‘page’ types. You can add support for any custom post type using a filter hook in your theme or another plugin:
`php
add_filter(‘rwpsl_supported_post_types’, function($types) {
$types[] = ‘your_custom_post_type’;
return $types;
});

How are duplicate views prevented?

The plugin uses browser cookies to ignore repeat visits from the same user for 12 hours.

What data does the plugin collect?

The plugin only stores post view counts in your WordPress database. It uses a cookie to prevent duplicate counting but does not collect any personal information or IP addresses.

What are the system requirements?

Tested with:
WordPress 6.6 to 6.8
PHP 8.2 to 8.4
MySQL 5.7 to 8.0

How can I display view counts on my site?

You can use the shortcode [rwpsl_post_views] in posts/pages/widgets, or use the provided REST API endpoint.

Does this plugin support WordPress Multisite?

Multisite support is available in the Pro version. The Lite version works on single WordPress installations.

How to add translations?

Copy /languages/rw-postviewstats-lite.pot and create your translation files. Submit your .po file to help improve the plugin.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈RW PostViewStats Lite〉的開發相關工作。

參與者

將〈RW PostViewStats Lite〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.0.2

Fix the problem of $_POST not being sanitized

1.0.1

Standard constant naming
Fix REST API callback permissions
Add protection code to HTML template

1.0.0

Initial release with AJAX tracking
Cookie-based duplicate prevention
REST API integration
Shortcode for displaying views