O’Brien Media Analytics (WooCommerce) Plugin for WordPress

O’Brien Media Analytics (WooCommerce) connects your WordPress site to Matomo Analytics and automatically records key ecommerce interactions from WooCommerce. You’ll see how customers browse products, add items to their basket, and complete orders—giving you the insights you need to improve conversion and grow revenue.

  • Version: 1.1
  • Works with: Self-hosted Matomo or Matomo Cloud
  • Download: Contact us for a copy of the plugin file

What it tracks

  • General site activity: page views and link clicks
  • Product engagement: product detail views
  • Shopping behaviour: add-to-cart actions
  • Sales performance: completed orders with item details and order totals

WooCommerce is only required for the ecommerce events; general site tracking works without it.

Why use it

  • End-to-end visibility: See the customer journey from product view to purchase.
  • Actionable insights: Identify top products, bottlenecks in the funnel, and opportunities to optimise.
  • Privacy-aware: Optional consent mode and “Do Not Track” respect are built in.
  • Lightweight: No front-end bloat and minimal configuration.

Requirements

  • WordPress: 5.6 or newer
  • PHP: 7.4 or newer
  • WooCommerce: optional (required for ecommerce events)
  • Matomo: a valid server URL (e.g., https://analytics.obrienmedia.co.uk) and numeric Site ID

Setup (3 quick steps)

  1. Install & Activate
    Upload and activate the plugin in Plugins → Add New → Upload Plugin.
  2. Enter your Matomo details
    Go to Settings → O’Brien Media Analytics and set:

    • Matomo Server URL (including https://)
    • Site ID (number from your Matomo site)
  3. Choose privacy options (optional)
    • Require Consent: wait for your consent banner to grant permission before tracking
    • Respect “Do Not Track”: skip tracking when visitors have DNT enabled in their browser

Privacy controls

  • Consent friendly: Can be configured to only collect data after your consent banner approves it.
  • Do Not Track support: Optionally honours the visitor’s browser preference automatically.
  • Clean uninstall: Removing the plugin deletes its WordPress settings (it does not delete any data already stored in Matomo).

Compatibility notes

  • Caching/CDNs: Safe to use alongside popular caching plugins and CDNs.
  • Payment gateways: For order tracking to appear, off-site gateways (e.g., PayPal) must return customers to your Order Received/Thank You page.
  • Multisite: Works per site; configure each site’s Matomo URL and Site ID as needed.

Troubleshooting

  • No data in Matomo?
    • Confirm the Matomo URL includes https:// and is reachable.
    • Verify the Site ID matches the site you created in Matomo.
    • If you enabled Require Consent, ensure your consent banner is granting consent.
    • If you enabled Do Not Track, note that some visitors won’t be counted.
    • Clear any page cache and test in a private/incognito window.
  • Orders not appearing?
    • Make a test purchase and ensure you land on the site’s Order Received page.
    • Check that WooCommerce is active and Enable WooCommerce Ecommerce Tracking is turned on in settings.
Last updated byChris Grant (he/him)Chris Grant (he/him)