
內容簡介
Weblix Analytics 是一款快速且注重隱私的 WordPress 分析外掛,提供即時數據分析,並在控制台內顯示,對網站速度無影響。它是自我托管的 Google Analytics 替代方案,讓用戶能夠輕鬆獲取訪客統計資訊。
【主要功能】
• 實時監控與統計數據
• 自我托管,無需外部服務
• 無需 Google 帳號或第三方追蹤
• 即時更新的訪客計數器
• 簡潔的用戶介面與開發者友好設計
外掛標籤
開發者團隊
② 後台搜尋「Weblix Analytics – Real-Time Stats & Visitor Counter」→ 直接安裝(推薦)
原文外掛簡介
🚀 Real-Time Lightweight Analytics for WordPress
Weblix Analytics is a fast, privacy-focused analytics plugin that delivers powerful real-time insights directly inside your WordPress dashboard — with zero impact on site speed.
No external services. No heavy scripts. All data stays on your server.
If you are looking for a self-hosted Google Analytics alternative, a visitor counter that never slows your site down, or a real-time stats dashboard that respects privacy law, Weblix is built for exactly that: one tiny tracker request per page view, a bounded self-cleaning database and every number computed on your own server.
From live online users to rolling 24-hour comparisons inspired by Google Search Console, Weblix Analytics gives you everything you need in a clean, fast, and developer-friendly package.
❓ Why Weblix?
Unlike cloud analytics services, Weblix Analytics keeps your data inside WordPress.
No Google account required
No third-party tracking cookies
No external tracking scripts or pixels
Real-time instant statistics
Lightweight and fully self-hosted architecture
Built to stay fast on very large sites with a deliberately tiny database footprint
🌟 Key Features
Live Real-Time Monitoring (rethought in 3.0)
* “Pulse” realtime console: the big live counter leads (on the right in RTL) beside the minute-by-minute bar chart covering the last 60 minutes — you see the shape of the last hour immediately
* Peak minute highlighted automatically; the still-running minute shown faded
* Live counter with breathing ring, device chips and automatic refresh
* Trending Now board — pages ranked over your online window (list length configurable, up to 200), with the number of people on each page shown right beside the title (clean plain text, momentum badge vs the previous window, NEW flag reserved for genuine bursts — 3+ visitors with an empty previous window; every page title is a hyperlink carrying its URL as tooltip)
* Recent visitors feed with source chips (its title jumps to the Sources tab)
* Smart insight notes never push the charts down — they live only in a bell icon in the topbar and in the WordPress admin bar, on every tab
Live Status in the WordPress Admin Bar
* Online-visitor counter and insights bell in the fixed admin bar — visible on every admin screen AND on the site’s own pages while you are logged in
* The bell opens the same smart-notes panel as the console, right inside the bar; wording follows the admin profile language, so an English-profile admin on a Persian site reads English everywhere
* Both indicators refresh at exactly the Dashboard Refresh interval chosen in Settings and pause in hidden tabs — one source of truth shared with the console topbar and the dashboard widget, no wasted requests
* Quietly stays out of the way on mobile (below 782px the admin bar has no room); the in-plugin console is untouched
The Analytics Page — Today, Any Day, and Reviews up to a Year
* One view selector switches the whole page between Today, Yesterday, any of the last 30 days and rolling 7/30/90/180/365-day reviews — the same six KPI cards everywhere (Visitors, Page Views, Views/Visitor, Bot Visits, Peak Hour / Best Day and the Mobile vs Desktop split bar)
* Today stays live: delta chips versus yesterday at the same time, rolling 12-hour sparklines, optional faded yesterday overlay behind the hourly bars
* Pick any of the last 30 days — date picker, labeled prev/next stepper, back-to-today and bookmarkable #weblix-day / #weblix-period links — for its full hourly chart and archive-backed top pages, sources, devices, browsers, OS and bots
* 7/30/90/180/365-day reviews add daily-average and best-day cards, previous-period deltas and a mixed daily trend chart — page views as columns, visitors as a sharp line above them — with the best and worst day marked: click any point to drill straight into that day; the Publishing Clock follows the selected window
* The Visitors / Page-Views switch below the chart drives the cards and tables in every view; Top Pages / Landing / Exit switcher, Traffic Sources donut, Browsers & OS mini-tables, Top Bots
Audience & Acquisition Intelligence (GA-inspired, computed only from data you already store)
* Audience quality strip: New vs Returning visitors, Single-page visit share (bounce proxy), Average active span (first → last hit)
* Landing and Exit page reports computed per-visitor inside the raw window
* UTM campaign report (source · medium · campaign) — live from today’s hits, archived nightly to weblix_daily.top_utms forever after
* Publishing Clock: weekday × hour heatmap of views across 30 days so you know exactly when your audience is most active
* All modules optional — one Settings switch hides them; everything is computed from data already stored, the tracking engine stays untouched
Rolling 24-Hour Compare — Google-Search-Console style
* Last 24 hours vs previous 24 hours
* Today so far vs yesterday same time
* Last 24 hours vs the same period last week
* Last 24 hours vs the same period 30 days ago
* Three metrics: Visitors, Page Views and Views-per-Visitor (derived per hour client-side, like GA’s engagement benchmark)
* Hour-by-hour dual-line chart; hover shows both values plus the difference
* Summary cards: current total, comparison total, absolute difference and % change
* Top pages and source-type tables follow the selected metric; referrer detail inside the raw-data window
Multi-Day Compare PRO
* Smart presets: 7 vs previous 7, 28 vs previous 28, this month vs last month, this month vs same month last year, fully custom ranges
* “Align by day of week” option for equal-length custom ranges — a Monday compares with a Monday
* Optional normalised (%) view when comparing series of different scales or lengths
* Dual-series trend chart over day indexes with per-day tooltips
* Full metrics breakdown table: Visitors, Page Views, Views/Visitor, Bots, Desktop/Mobile/Tablet, Search/Social/Direct/Referral — each row showing A, B, difference and % change
* Clear empty-state notices when a range predates your archive instead of silent zeros
Classic Analytics Tabs
* Pages, Sources, Devices, Browsers & OS, Bots across Today / Yesterday / 7 / 30 / 90-day windows
* Percentage share bars on every table
* Pages tab built for reading: page titles are the links, URLs shown decoded, muted and single-line
Smart Insights — quiet by design
* Same-time traffic comparison (e.g. “Traffic up 23% vs yesterday at this time”)
* Top traffic source of the day · Most visited page highlight · Hourly traffic spike detection
* Delivered through one bell icon with a red blinking badge next to the live counter — open it on any tab; no insight banner is ever rendered inside the analytics pages
Privacy, Protection & Access Control
* Numbers-only hourly archive — no IPs, URLs or titles in it
* Optional IP hashing (GDPR friendly)
* Exclude logged-in users, roles, IPs, and URL patterns
* Advanced bot detection with server-side tracking
* Configurable retention for daily data and a hard-capped hourly table
* Rate limiting on all tracking endpoints, same-origin validation on the public tracker, nonce + capability checks on every admin action, prepared SQL everywhere
* Statistics Visibility: pick exactly which user roles can see the console, the dashboard widget and the admin bar status — administrators only by default, enforced server-side through one audited capability gate
Cache & CDN Compatibility (hardened across the whole 3.0 QA line)
* No security token embedded in page HTML — tracking requests are validated by same-origin proof, so arbitrarily old cached pages keep counting
* Zero GET data requests: every live read (admin bar, Realtime page, every dashboard tab) travels as POST with no-store headers and cache-busting parameters — no browser, proxy or “cache everything” CDN can store or replay a Weblix number
* Server-side snapshots are freshness-stamped and self-healing: a cached payload is only served while provably fresh, and a row damaged by database-optimization sweeps (the classic “frozen counter” cause) is rebuilt automatically on the first request
* Crawler user-agent bypass rules registered automatically with WP Rocket and LiteSpeed so bots reach PHP behind full-page cache
* REST API endpoints carry explicit no-store headers, so excluding /wp-json/weblix/ from edge caching is officially supported
* Diagnostics Tracking Self-Test: fires one real request through your cache setup and reports pass/fail
Tools & Diagnostics
* System health, cron status (including the hourly rollup), DB sizes incl. the hourly table
* “Data Safety & Storage” card: every table with its row count, oldest record and exact deletion policy
* Cache/CDN detection card explaining what Weblix did about each layer — and what only edge rules can fix
* “Run Cleanup Now”: one click flushes every live Weblix cache (all locale variants) — an instant manual reset on top of the self-healing guards
* Manual actions: aggregate yesterday, backfill missing hours
* CSV Export · WordPress Dashboard widget · Translation status row showing exactly which language file is active
⚡ Built for Performance
Lightweight tracker: one deferred POST per page view (prerender-aware, so hover-preloaded pages never inflate your numbers)
Three tiny tables: raw visits (rolling 72 h), daily archive, hourly numbers (~50 bytes/row)
Hourly rollup filled by one grouped query per hour in WP-Cron — never on page loads
Gaps self-heal automatically when a dashboard view notices them — a missed cron night folds itself back in, it can never leave a permanent hole
The admin bar, console and dashboard widget all read the same shared, bounded, freshness-guarded snapshot instead of querying separately
Batch DELETE with LIMIT prevents MySQL table locks
All queries use prepared statements and indexed reads
Third-Party Assets
Chart.js — bundled at assets/js/chart.min.js (minified, without source changes). Copyright the Chart.js contributors, released under the MIT License: https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
Vazirmatn FD — bundled at assets/fonts/Vazirmatn-FD-Regular.woff2 (the official Farsi-Digits Regular build, unmodified), together with its full license text at assets/fonts/OFL.txt. Copyright 2015 The Vazirmatn Project Authors (https://github.com/rastikerdar/vazirmatn), released under the SIL Open Font License 1.1: https://scripts.sil.org/OFL — used by Weblix only for fa* admin locales. In this build the Latin digit codepoints are drawn as the locale’s native digits, so every number in the translated UI uses the familiar local digit shapes
