Skip to main content
PrestaShop → MatomoIntegration guide

Connecting PrestaShop to Matomo

PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. Matomo can be self-hosted with no third party in the chain, which makes it the one analytics destination where the data genuinely never leaves infrastructure you control. The join between them succeeds or fails on one thing: whether the first-party visitor ID reaches the PrestaShop order before the conversion happens, because Matomo can only match a conversion it can tie back to a click it recognizes.

Free30 minutesNo obligation

Specific to this pair

PrestaShop to Matomo: ecommerce orders that match the back office

Send Matomo ecommerce orders with the order ID, grand total, subtotal, tax, shipping and discount as PrestaShop stores them, using the order reference or numeric ID consistently. A server-side HTTP Tracking API request from the order validation hook catches orders payment modules route elsewhere, but needs the _pk_id visitor ID stored on the cart. Credit slips stay out.

Matomo suits PrestaShop merchants who already self-host everything and want analytics on the same footing. Matomo's ecommerce order takes an order ID, grand total, subtotal, tax, shipping and discount, and PrestaShop stores each of those as a separate field on the order. Send them as stored rather than recomputing, and use either the order reference or the numeric order ID consistently, because split carts share one reference.

The browser-side ecommerce call misses orders whenever a payment module returns the shopper somewhere other than the standard confirmation page. A server-side request to the HTTP Tracking API from the order validation hook covers them, but it needs the visitor ID from Matomo's _pk_id cookie stored on the cart, or the order lands as a new visitor with no source. On multistore installs, route each shop to its own Matomo site ID.

As far as we know, Matomo's ecommerce tracking has no refund call, so credit slips stay out of its revenue. Say so in reports, or reconcile in the database, where Matomo's raw logs can sit beside your PrestaShop tables. Check whether a Matomo module supports your PrestaShop version before writing the browser half yourself.

PrestaShop → Matomo · what breaks

Why this join usually fails — PrestaShop → Matomo

  1. 01

    The first-party visitor ID never reaches PrestaShop

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  2. 02

    Module ecosystem interference

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  3. 03

    Owning the pipeline means owning the outage

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  4. 04

    Nothing reconciles afterwards

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

PrestaShop → Matomo · the fix

What working looks like — PrestaShop → Matomo

  • The first-party visitor ID on every order

  • Conversions arriving in Matomo

    The event lands in your own database and is queryable directly, including the raw log, which most analytics products do not expose.

  • Reconciled against the source

PrestaShop → Matomo · architecture

How PrestaShop and Matomo actually connect

  1. 1

    PrestaShop holds the truth

    You own the data and can query it directly. Pin down which order states count as revenue, since PrestaShop's state machine is more granular than most.

  2. 2

    Matomo needs a click to match

    The site ID, the visitor identifier and the event or ecommerce order. Self-hosted instances additionally need the tracker endpoint reachable and the database keeping up, which hosted tools do not fail at.

  3. 3

    The identifier is the bridge

    The first-party visitor ID, captured at the visit and carried into the PrestaShop order.

  4. 4

    The event source decides reliability

    Fire server-side from the hook rather than the confirmation template.

  5. 5

    Deduplication at the destination

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

PrestaShop → Matomo · normal or broken

Working vs. broken, side by side — PrestaShop → Matomo

Normal, not a fault

  • The first-party visitor ID present on the order

  • Sent from the PrestaShop order validation hook

  • Deduplicated correctly

    Matomo deduplicates ecommerce orders on order ID. Without one, a refreshed confirmation page records a second order.

  • Reconciles with the source

Actually broken

  • The first-party visitor ID missing on most records

    Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to.

  • Sent from the browser

    PrestaShop stores accumulate modules, and any of them can alter checkout behaviour or strip what your code depends on. Failures appear after an unrelated update.

  • Counted twice, or not at all

    The advantage is that nothing blocks it. The cost is that when the tracking database fills or falls behind on a weekend, the data is gone and no vendor is paging anyone. Hosted tools fail more visibly.

  • Nobody has reconciled it

PrestaShop → Matomo · diagnose

Diagnostic order — PrestaShop → Matomo

  1. 01

    Count orders carrying the first-party visitor ID

  2. 02

    Follow one real conversion end to end

  3. 03

    Check order metadata on ten recent orders

    Partial coverage across orders points at a module conflict rather than a missing implementation.

  4. 04

    Check tracker reachability and database lag before debugging any tag

    On self-hosted analytics the answer is infrastructure more often than instrumentation.

  5. 05

    Read the match rate, not the success message

    Matomo exposes raw visit logs, so you can inspect the actual hit rather than an aggregate. Check the log, and check ingestion lag alongside it.

PrestaShop → Matomo · prove

How it gets proven — PrestaShop → Matomo

Source of truth

PrestaShop's order records in your own database, for the same window and order state set.

  • The first-party visitor ID confirmed present on a live order.
  • Orders reconciled against the Matomo ecommerce log with order-ID deduplication verified.
  • Order metadata confirmed present across ten consecutive orders rather than one.

PrestaShop → Matomo · free audit

What we check in the free audit

  • Count orders carrying the first-party visitor ID
  • Follow one real conversion end to end
  • Check order metadata on ten recent orders
  • Check tracker reachability and database lag before debugging any tag
  • Read the match rate, not the success message

Checked against

PrestaShop's order records in your own database, for the same window and order state set.

Get my free conversion tracking audit

Free30 minutesNo obligation

PrestaShop → Matomo · when not to buy

When you don't need this — PrestaShop → Matomo

  • Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the first-party visitor ID.
  • If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
  • If you have no privacy or ownership requirement and no team to run it, a hosted product removes the only real cost of this one.

PrestaShop → Matomo · what we deliver

What gets built — PrestaShop → Matomo

  • Identifier capture into PrestaShop

    Capture the identifier and write it to order metadata through a hook, server-side, so it does not depend on page execution.

  • Event source: the PrestaShop order validation hook

    Fire server-side from the hook rather than the confirmation template.

  • Dispatch to Matomo

    The Matomo HTTP Tracking API, posted server-side from your order system.

  • Reversals where they exist

    Credit slips are recorded against the order.

Written guarantee

95%+ tracking accuracy

Measured against PrestaShop's order records in your own database, for the same window and order state set.. Miss it and we keep working at no cost.

Get my free conversion tracking audit

From $400 · See packages

FAQ

PrestaShop → Matomo questions, answered

Community modules have existed; check PrestaShop Addons and the Matomo marketplace for one that supports your version. Either way, add a server-side order request for completeness.

Free · 30 min

Get PrestaShop and Matomo joined properly

Free30 minutesNo obligation