
Pomelo Analytics
v1.3.1pomeloanalytics · 2026年11月26日 上架
Privacy-first web analytics for WordPress, with no measurement cookie. Add Pomelo tracking and view key stats in your admin.
- 正在使用
- 10 以下
- 评分
- 暂无
- 累计下载
- 0
- 最近更新
- 2026年11月26日
贡献者
截图



Pomelo Analytics is a privacy-first web analytics platform built around minimal collection, with no measurement cookie.
This plugin lets you:
- Quick Connect (every plan, Free included) – connect WordPress to your Pomelo account without manually copying credentials
- Tracking setup – add the Pomelo tracking script to public WordPress pages with your site ID
- WordPress stats (Starter and Pro) – view pageviews, sessions, top pages, referrers, devices, browsers, and countries in your admin
- Dashboard widget – see a compact KPI overview on the WordPress dashboard
- Stats page – use a date range selector and SVG charts without external JavaScript chart libraries
- Minimal collection posture – Pomelo sets no measurement cookie and documents what the tracker collects
Features
- Quick Connect from the settings page
- Local tracking script bundled with the plugin
- Time range selector: 7, 30, or 90 days
- Top pages, referrers, devices, browsers, and countries breakdown
- English and French translations
- Advanced configuration for endpoint, debug logging, same-site hosts, and download file types
- Consent plugins that follow the WP Consent API pass the visitor’s choice to the tracker; an option waits for that consent before measuring
- Clean uninstall that removes plugin settings and cached API responses
Requirements
- A Pomelo Analytics account (pomeloanalytics.com)
- Connecting works on every plan, Free included, and needs no API token
- Statistics inside WordPress are available from the Starter plan; otherwise open your reports in Pomelo
External services
This plugin connects to Pomelo Analytics services to provide tracking, account connection, and admin reporting.
https://api.pomeloanalytics.com/iis used by the bundled tracker on public pages. It can be called withGETto fetch the active runtime collection configuration for the site, and withPOSTto send analytics events when tracking is enabled. Depending on the active Pomelo site configuration, event payloads can include site ID, event name, page path, referrer, page title when safe, language, viewport size, basic device/browser fields, Web Vitals or timing buckets, bounded interaction labels/IDs, form submit metadata, download metadata, email or phone link clicks, and JavaScript error type, script and line. Addresses are sent without their parameters or fragment. Only when the site has enabled the Campagnes option and the visitor has accepted marketing (WP Consent API categorymarketing), events also carry the campaign parameters of the page address:utm_source,utm_medium,utm_campaign,utm_content,utm_termandref. When Wait for visitor consent before measuring is enabled, nothing is requested from this service until the visitor accepts statistics. Without that setting, a visitor who refuses statistics in the consent plugin is not measured.https://api.pomeloanalytics.com/v1is used by the WordPress admin to exchange Quick Connect codes, to fetch account, site, and metrics data when an API token is configured, and to revoke that token when you disconnect. Quick Connect exchanges send the one-time code, the WordPress site domain, and the nonce-backed state value. When you click Connect to Pomelo, the address of your site, its name, its time zone, your language and your administrator email address are passed in the link to the Pomelo sign-in page, only to pre-fill the form.https://app.pomeloanalytics.com/connect/wordpressis opened when an administrator clicks Connect to Pomelo. It receives the WordPress site domain, locale, return URL, and a nonce-backed state value so the connection flow can return to WordPress.
Pomelo’s public privacy policy is available at pomeloanalytics.com/privacy-policy/.
JavaScript source and build
WordPress loads the minified files assets/js/pomelo-tracker.js and assets/js/pomelo-admin.js. After the page has loaded, the tracker adds assets/js/vitals-3.0.1.js, which measures Web Vitals, from the same directory. Both tracker files are the same minified runtime as the canonical Pomelo SDK build; WordPress supplies its configuration through script attributes.
The plugin includes the readable JavaScript in source/pomelo-tracker.js, source/vitals-3.0.1.js and source/pomelo-admin.js. The tracker source is the bundled browser IIFE before compression, with readable identifiers. Files in source/ are build inputs and are not enqueued by WordPress. This directory also includes the exact Terser options, a build script, and a package manifest pinning the minifier version. It contains only the JavaScript used by this plugin, without the private service or dashboard source.
The web-vitals license, modification notice, and source patch are included as source/LICENSE.web-vitals.txt, source/NOTICE.web-vitals.txt, and source/web-vitals.patch.
To reproduce the minified assets from an extracted plugin ZIP, use Node.js 24 and npm 11. From the plugin directory, run:
npm --prefix source install --ignore-scripts
npm --prefix source run build
npm --prefix source run check
To check the existing assets without rewriting them, run only the install and check commands. The build preserves public property names and logs and disables unsafe Terser optimizations. No private repository or service credentials are required.