r/umamiengine • • 24d ago

OSSEngine Analytics Connector 1.1.0 released – Major WooCommerce tracking, consent management, and reliability improvements

I've released version 1.1.0 of OSSEngine Analytics Connector, and this is a fairly substantial update.

The main focus of this release was improving WooCommerce tracking reliability, handling user consent properly, and making event delivery more resilient.

Here's a breakdown of what's changed.

🛒 WooCommerce purchase tracking

One of the biggest additions is exactly-once purchase tracking.

The implementation introduces a claimed → delivered state machine to prevent duplicate purchase events, along with:

  • A nonce-free order-key + HMAC confirmation endpoint.
  • Stable, salted event_id generation.
  • Per-order consent snapshots.
  • Migration of legacy 1.0.0 delivery markers without re-firing previously tracked purchases.

The JavaScript tracking layer has also been completely rewritten to support:

  • Classic and block-based cart and checkout.
  • WooCommerce Store API add/remove operations.
  • AJAX cart fragments.
  • Non-AJAX add-to-cart forms.

The new implementation has no external dependencies and is under 3 KB.

🔒 Consent management

Version 1.1.0 introduces three consent modes:

  • Auto: Automatically follows the available consent configuration.
  • Require consent: Only tracks when consent is granted.
  • Always track: Enables tracking regardless of the consent configuration.

Other additions include:

  • WordPress Consent API integration.
  • A window.ossengineConsent JavaScript interface.
  • Cross-tab consent withdrawal propagation.
  • Cache-safe role exclusion.
  • Per-order consent snapshots.

⚙️ More reliable event delivery

I've also introduced a bounded server-side event queue.

It includes:

  • A versioned database table.
  • Configurable eviction limits.
  • Exponential backoff.
  • Dead-letter handling.
  • Retry-After support.
  • A circuit breaker.
  • An optional server-side fallback, disabled by default.

There's also a new queue status panel in the WordPress administration area.

🛠️ Administration and privacy improvements

The new Advanced Settings tab provides controls for consent, trigger status, order-ID opt-in, excluded roles, queue limits, and the server-side fallback.

Additional improvements:

  • Read-only WooCommerce order metabox.
  • WordPress privacy exporter and eraser integration.
  • Privacy policy text.
  • Strict per-event payload allowlist.
  • PII scrubbing and an 8 KB payload limit.
  • Extend-only schema filters.
  • Complete uninstall cleanup covering the new options, queue table, and scheduled hooks.

Other fixes

  • Improved cache-safe tracking initialization using an inline bootstrap.
  • Existing ossengine_script_position and ossengine_tracking_enabled filters remain supported.
  • begin_checkout deduplication now uses the cart hash instead of the session ID.

Get the plugin

https://wordpress.org/plugins/ossengine-analytics-connector/

This release involved quite a bit of work, particularly around purchase deduplication, consent handling, and event delivery reliability.

I'd appreciate feedback from anyone using it, especially those running WooCommerce stores with block-based checkout or caching plugins.

Suggestions, bug reports, and feature requests are welcome!

1 Upvotes

0 comments sorted by