Repository navigation
Releases: JensS/simplest-analytics
Release list
v1.3.1 - Cache Compatibility Fix
Bug Fixes
-
Fixed tracking on cached pages - Pages served from PHP-level cache (WP Super Cache, W3TC, etc.) are now correctly tracked via JS fallback. The old boolean flag could be cached in HTML, causing subsequent visitors to go untracked.
-
Added deduplication - Prevents duplicate pageviews within a 30-second window using transient-based deduplication on both server-side tracker and REST API.
-
Fixed duplicate array keys - Cleaned up redundant entries in REST API data handling.
Technical Details
Changed cache detection from a simple window.sa_tracked = true boolean to a timestamp-based signature (window.sa_sig). JavaScript now checks if the signature is within 10 seconds of current time to determine if PHP actually tracked the current request vs. serving stale cached HTML.
Upgrade
This is a recommended update for all users, especially those using page caching plugins.
v1.3.0 - Time-on-Page Tracking
What's New
Time-on-Page Tracking
- Track how long visitors spend on each page
- Uses heartbeat mechanism with visibility detection
- Displays average duration in the pages statistics table
Performance Improvements
- Added transient caching for admin database queries
- New database indexes for faster lookups
- Optimized query patterns
Technical Changes
- Added
pageview_idcolumn for session tracking - Added
duration_secondscolumn to pageviews table - Enhanced JavaScript tracker with page lifecycle detection
v1.2.0 - Geographic & Browser Statistics
What's New
Features
- Countries tab - Geographic visitor statistics with flag emojis and visual bar charts
- Browsers tab - Browser name detection with icons (Chrome, Firefox, Safari, Edge, etc.)
- Devices section - Visual percentage bars showing desktop/mobile/tablet breakdown
- Campaign tracking - Full UTM parameter support with dedicated statistics tab
Improvements
- Enhanced user agent parsing for accurate browser identification
- Horizontal bar chart visualizations throughout statistics tables
- Two-column responsive layout for browser/device stats
Installation
- Download
the-simplest-analytics-1.2.0.zip - Go to Plugins → Add New → Upload Plugin
- Select the zip file and install
- Activate the plugin
Changelog
See full changelog in readme.txt
The Simplest Analytics v1.1.0
The Simplest Analytics v1.1.0
Privacy-first, lightweight analytics for WordPress. No cookies, GDPR compliant, cache-compatible.
Features
- No cookies - No consent banners needed
- GDPR compliant - IP addresses anonymized before storage
- Cache compatible - Hybrid tracking (server-side + JS fallback)
- Bot tracking - Monitors search engine crawlers and AI bots
- Campaign tracking - UTM parameter support (utm_source, utm_medium, utm_campaign)
- Simple charts - Daily visitor visualization
- Lightweight - Under 1KB JavaScript
Installation
- Download
the-simplest-analytics-1.1.0.zip - In WordPress admin, go to Plugins → Add New → Upload Plugin
- Upload the zip file and activate
- View stats at Tools → Simplest Analytics
Changelog
- Campaign tracking with UTM parameters
- Daily visitors chart
- Rate limiting on tracking API
- Memory-efficient unique visitor detection
- Fixed double counting issue
- Moved admin page to Tools menu
Requirements
- WordPress 6.0+
- PHP 7.4+