Release Notes
=== WPEXTN Post Page Analytics ===
Contributors: wpextn
Tags: post views, page views, analytics, view log, ip masking, gdpr, csv export, admin tools
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tracks views on posts and pages with total and unique (by IP) counts, timestamps, GDPR-aware IP/User-Agent logging, IP masking, bulk delete, and CSV export.
== Description ==
**WPEXTN Post Page Analytics** logs each view of single posts and pages in a dedicated database table, giving you simple, privacy-aware analytics right inside WordPress. It adds an **overview dashboard**, a **sortable/paginated log**, **bulk delete**, **CSV export**, and a **Views column** in Posts/Pages lists (showing *total* and *unique by IP*).
**🔧 Features:**
- Logs each view of single **posts** and **pages**, including:
- Post ID
- View time (site timezone)
- IP address *(optional; can be masked or fully disabled)*
- User Agent *(optional; can be disabled)*
- **Privacy controls (GDPR-friendly):**
- Toggle IP & User-Agent logging on/off
- **Mask IP** (IPv4 last octet / IPv6 last segment)
- **Admin UI:**
- **Overview**: total views, unique posts/pages viewed, breakdown for posts vs pages
- **Log table**: sortable columns, pagination, select rows
- **Bulk delete** selected rows
- **Export selected** rows to **CSV**
- **Delete all** logged data (with nonce & confirmation)
- **Posts/Pages list integration:**
- Adds a **Views** column showing `Total (Unique by IP)`
- Lightweight, no front-end dependencies
**Notes on “Unique”**: The **unique count** shown in the Posts/Pages **Views** column is calculated by **distinct IP**s for that post. (If IP logging is disabled, unique will read as 0.)
== Installation ==
1. Upload the plugin folder to `/wp-content/plugins/` or install via the admin panel.
2. Activate the plugin.
3. Go to **Settings → WPEXTN Analytics** to configure tracking and privacy options.
4. See **Posts → All Posts** and **Pages → All Pages** for the new **Views** column (`Total (Unique)`).
5. Use the **Analytics** settings page to review the overview, browse logs, **bulk delete**, **export CSV**, or **delete all** data.
== Changelog ==
= 1.0.0 =
Initial release.