Pomelo Analytics

Description

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/i is used by the bundled tracker on public pages. It can be called with GET to fetch the active runtime collection configuration for the site, and with POST to 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 category marketing), events also carry the campaign parameters of the page address: utm_source, utm_medium, utm_campaign, utm_content, utm_term and ref. 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/v1 is 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/wordpress is 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.

Screenshots

Installation

  1. Upload the pomelo-analytics folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Follow the notice to the Pomelo > Connection page
  4. Click Connect to Pomelo: sign in or create your account, confirm the workspace and the site, and you come back to WordPress
  5. With a plan that includes statistics in WordPress, the page shows when visits have been received; on the Free plan, check them in your Pomelo reports. Advanced settings (manual site ID, API token) stay folded away

FAQ

Does Pomelo use cookies?

Pomelo tracking sets no measurement cookie; the only possible cookie remembers a visitor’s opt-out. The plugin also exposes Pomelo’s visitor opt-out behavior from the bundled tracking script.

Does this plugin remove the need for legal or privacy review?

No. Pomelo is designed to reduce the compliance burden through minimal collection and clear documentation, but your actual obligations depend on your configuration, jurisdiction, and the rest of your tracking stack.

Where do I find my site ID?

Log in to your Pomelo Dashboard, open your site settings, and copy the site ID.

Do I need an API token?

No. Connecting from WordPress issues one for you on plans that include statistics in WordPress (Starter and above). On the Free plan the connection configures collection and your reports stay in Pomelo.

Does the tracking script slow down my site?

The tracking script is loaded asynchronously and is bundled locally with the plugin. As with any script, you should test your live site performance with your complete theme and plugin stack.

Is the plugin compatible with caching plugins?

Yes. The tracking script is enqueued on public pages and works with standard WordPress caching plugins and CDNs.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Pomelo Analytics” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Pomelo Analytics” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.3.1

  • The statistics page is under Dashboard and the connection page under Settings. Translations are delivered through translate.wordpress.org.

1.3.0

  • Connecting works on every plan, Free included, and needs no API token. The connection pre-fills your site address, name, time zone, language and your administrator email address, finds the matching Pomelo site, lets you choose the workspace, and returns to a status page that shows whether visits have been received. You can reconnect or disconnect from that page.
  • A notice after activation that leads to the connection.
  • The statistics page shows exactly 7, 30 or 90 days, loads each block on its own so one error stays in its block, keeps valid results while a new period loads, shows once when the data was updated, draws today as in progress, adds a scale to the trend, and never replaces a count below 10. Devices, browsers and countries are one click away. Statistics in WordPress come with the Starter plan; on the Free plan the page opens your reports in Pomelo.
  • The dashboard widget no longer slows down the WordPress admin.
  • Links to Pomelo keep the site and your language, with a link to manage your report emails.
  • Reconnecting or disconnecting revokes the access that WordPress held, and report days follow the time zone of the Pomelo site.

1.2.0

  • Bundles the canonical Pomelo tracker 3.0.1: it makes no configuration request in the visitor’s browser (the plugin reads the site settings from Pomelo and caches them for an hour), sends automatic actions with the next batch instead of opening their own request, and observes clicks on interactive elements only. Click labels are capped at 100 characters: a longer label is dropped, never truncated.

1.1.1

  • Bundles the Pomelo tracker 2.0.1: Do Not Track and Global Privacy Control no longer stop the measurement; visitors object with the opt-out block.
  • The opt-out block no longer shows a browser-signal state.

1.1.0

  • Bundles the canonical Pomelo tracker 2.0.0, with Web Vitals in a separate file loaded after the page.
  • Passes the visitor’s choice from consent plugins that follow the WP Consent API: an explicit acceptance of marketing for the Campagnes option; statistics for the audience measurement, which an explicit refusal stops and which, when the site waits for consent, must be accepted.
  • Provides the Wait for visitor consent before measuring setting, the Quick Connect setup, the admin dashboard and widget, the opt-out block and shortcode, and English and French translations.