Infinitnet Cookieless Analytics for WooCommerce


The Infinitnet Cookieless Analytics for WooCommerce plugin connects a WordPress site to your own Cookieless Analytics install.

It prints the page script, gives visitors an opt-out and sends the store funnel and revenue from WooCommerce.

WordPress keeps no analytics data. Every number lives in your own database, next to all your other sites.

Get It on WordPress.orgView on GitHub

Settings page of the Cookieless Analytics plugin in the WordPress admin with engine URL, client site key, site ID and API key

What the Cookieless Analytics Plugin for WordPress Does

The plugin is the bridge. The analytics engine runs on EmDash, on your own Cloudflare account.

WordPress only needs to tell it what happens on the site:

  • Page script: the plugin prints the engine script on block themes and classic themes.
  • Opt-out control: a shortcode and a block let visitors stop being counted.
  • Store funnel: with WooCommerce, product and list views, cart changes, coupons and checkout start.
  • Orders and revenue: purchases with line items, full and partial refunds and cancellations, sent by the server.
  • Multisite: settings, secrets and the order queue are per site on a network.

How the Cookieless Analytics Plugin Loads the Page Script

You choose where the visitor's browser gets the script and where it posts its events:

  • The engine: the browser talks to the engine directly. WordPress is not involved at all. This is the default.
  • Your own domain through an edge rule: you route two paths on your domain to the engine first, then pick this option.
  • WordPress as a proxy: WordPress forwards page views to the engine. Only for sites at the domain root, and every page view costs at least two uncached PHP requests.

Start with the default. Use a proxy only when you have a reason.

How WooCommerce Orders Reach Cookieless Analytics

Browser events are the easy part. Orders are not.

Cart changes and product views come from the visitor's page. Purchases, refunds and cancellations come from the WordPress server, through a queue that Action Scheduler runs.

So an order is reported even when the visitor closes the tab right after paying.

The plugin works with both order storages (HPOS and posts), with the Cart and Checkout blocks and with the classic shortcode checkout.

The engine then shows revenue by source, campaign and landing page, with refunds and net revenue.

What the Cookieless Analytics Plugin Does Not Collect

The plugin sets no cookies and writes nothing to the visitor's browser storage.

An order report holds the totals, the currency, the time, an order reference and the order lines. No name, no email address, no postal address and no payment detail is ever sent.

Visitors who opted out, or who send Global Privacy Control, are reported without a session and without order details, or not at all if you choose that.

The API key is stored encrypted and never shown again. The plugin also adds a suggested section to the WordPress privacy policy guide.

How to Install the Cookieless Analytics Plugin

You need a Cookieless Analytics install first. The plugin is only the connection.

  1. Set up the engine: Cookieless Analytics on Infinitnet has the one-click Cloudflare deploy and the npm install.
  2. Install the plugin from the WordPress.org page and activate it.
  3. In the engine admin, register the site under Definitions and create an API key with the scope write:events, limited to that site.
  4. In WordPress, open Settings, Cookieless Analytics. Enter the engine URL, the client site key, the site ID and the API key, save, and run Test connection.
  5. With WooCommerce, run Send test on the Status tab.

You need WordPress 7.0 or newer, PHP 8.1 or newer, a site served over https and a Cookieless Analytics install of version 1.3.2 or newer. The WordPress proxy needs version 1.4.0 or newer. Store events and orders need WooCommerce 11.2 or newer.

Why I Built the Cookieless Analytics Plugin for WordPress

Cookieless Analytics already reports orders by source, campaign and landing page.

A WordPress shop still needed a clean way to get its orders there.

So I wrote one, and I kept it small: no reports inside WordPress, no second database, no data that does not belong there.

Cookieless Analytics Plugin Source Code and Downloads

The engine behind the plugin is Cookieless Analytics. More of my work is on the open source projects page.

Questions or feedback?

Send a message