Case study · Own WordPress plugin, privacy-first analytics

Omea Analytics – cookieless analytics that lives in your own WordPress

We designed and built our own analytics plugin for WordPress and publish it free and open source on WordPress.org: a 1.8 KB tracker, no cookies or device storage before consent, and visits, sources, AI traffic, conversions and WooCommerce revenue stored in the site’s own database.

The starting point

For most WordPress sites, measuring traffic means Google Analytics 4: an account, a property, a tag and a cookie banner. The tag is 155 KB, the data sits on Google’s servers, and before consent GA4 sees nothing – or only cookieless pings with Consent Mode. AI crawlers stay invisible because they don’t run JavaScript, and counting WooCommerce orders whose buyer never reaches the thank-you page needs extra setup. We wanted analytics that a WordPress site owns itself, so we built Omea Analytics. It is our own product, not a client project.

What we built

  • Omea Analytics, free and open source (GPL) on WordPress.org: install and activate – no account, no external service. WordPress 6.0+ and PHP 8.1+.
  • A 1.8 KB tracker and a collector that stores hits without loading WordPress.
  • Reports in wp-admin for visits, sources, AI traffic, conversions and WooCommerce revenue, read from daily rollups.
  • Importers and outputs: history from nine other analytics tools, and reports out by email, CSV, WP-CLI, a Reporting API and MCP.
  • Omea Analytics Pro, €49 a year: revenue attribution for WooCommerce, Easy Digital Downloads and FluentCart, funnels and segment comparison, white-label PDF client reports, live visitors and alerts, and a Looker Studio connector.

Built for speed, end to end

Analytics shouldn’t slow down the site it measures, so every step of a hit is kept short:

  • 1.8 KB on the page. The tracker is 1,782 bytes with gzip; Google’s gtag.js is 154,534 bytes (both gzip -9, measured on 23 October 2026). It sends two requests per page.
  • No WordPress on the hot path. Hits go to a standalone collector file that checks them and appends them to a buffer without loading WordPress. A job that runs every minute moves them into the database, one row per visit. If the collector can’t be reached, the plugin falls back to the WordPress REST API.
  • Reports from daily rollups. Visits are rolled up per day and dimension, so a report doesn’t scan raw hits. On our test site, a 30-day dashboard with 15,000 hits a day loads in about 11 ms.

Privacy in the data model, not in a policy

Before a visitor allows statistics, nothing is stored in the browser. The rest follows from what the plugin keeps:

  • Visits are recognised on the server with a key that changes every day; the collector only holds today’s and yesterday’s salt.
  • IP addresses are never stored – they’re used for the location lookup and dropped. Ad click IDs are kept only as their type, never the value.
  • With an explicit Statistics “yes” in Omea Consent or another WP Consent API banner, one first-party cookie recognises returning visitors and the campaign that first brought them. That can be turned off too.
  • Raw hits are kept for 30 days and visits for 395 days by default; the daily totals stay.
  • Omea makes no external requests while it measures. The only downloads are the free DB-IP geolocation database, monthly, and MaxMind’s if you choose it – no visitor data is sent.

AI traffic, from both sides

Visits from ChatGPT, Perplexity, Gemini, Copilot and Claude get their own AI Assistants channel. Crawlers don’t run JavaScript, so a browser tag never sees them – Omea counts on the server how often GPTBot, ClaudeBot, PerplexityBot and others fetch your pages, so crawling and clicks sit side by side.

Conversions and revenue that hold up

  • Goals from page visits, clicks, forms and custom events, with conversion rate and revenue per channel.
  • WooCommerce purchases are recorded on the server when the payment completes or the order moves to processing or completed, so an order counts even when the buyer never reaches the thank-you page.
  • Omea Consent Pro shares the same conversion list and sends conversions to Meta, Google Ads, TikTok, LinkedIn and Snap – only with the visitor’s consent. Read the Omea Consent Pro case.

Reports that go where people already work

  • Bring your history: import from Google Analytics 4, Jetpack Stats, Koko Analytics, WP Statistics, Burst Statistics, Independent Analytics, Statify, Slimstat or Plausible. Imported days fill in before Omea’s own data starts and are marked in reports.
  • Weekly or monthly email reports, CSV export of every report, a dashboard widget, a Views column, a Popular posts block and WP-CLI.
  • A read-only Reporting API for Google Sheets and Looker Studio, and MCP abilities for AI assistants.
  • Multilingual sites with Polylang or WPML get a Languages report based on the language of the pages viewed.

Want analytics you own?

Omea Analytics is how we think about measurement – fast, consent-aware and in your own database – packaged as a product. If your tracking needs the same thinking, or a plugin of its own, let’s talk.

Omea Analytics and Omea Analytics Pro are Cultmetrics products. Screenshot: the Omea Analytics 0.7.3 dashboard on our development copy of this site. This case study describes the plugin as built and shipped.