Connecting PrestaShop to Amplitude
PrestaShop is self-hosted open source with a large module ecosystem, which means the store's behaviour depends heavily on which modules are installed. Amplitude is built around behavioural cohorts, which makes the identity resolution and the event taxonomy load-bearing in a way they never are for an ad pixel. The join between them succeeds or fails on one thing: whether the user ID and device ID pair reaches the PrestaShop order before the conversion happens, because Amplitude can only match a conversion it can tie back to a click it recognizes.
Free30 minutesNo obligation
Specific to this pair
PrestaShop to Amplitude: pick a user ID that survives guest checkout
Send the PrestaShop purchase to Amplitude server-side from actionValidateOrder with a revenue event per product line, the order currency and the order reference as insert_id. Use a hashed email as the user ID on guest-heavy stores so returning guests don't split. Send bank-wire orders only once paid, and send credit slips as negative revenue.
PrestaShop's id_customer looks like the natural Amplitude user ID, with one catch specific to this platform: guest checkout creates a customer record flagged as a guest, and a shopper who checks out as a guest and later registers may end up on a separate customer record. Decide up front whether Amplitude's user ID is id_customer or a hash of the email; for stores with heavy guest checkout, the email hash keeps a returning guest from becoming two users with half a history each.
Send the purchase server-side from the order validation hook (actionValidateOrder) with that user ID, a revenue event per product line with price and quantity populated, the order's currency, and the order reference as insert_id. If the Amplitude browser SDK runs on the storefront, set the same user ID on login and at checkout, or the server-sent purchase lands on a user with no browsing history.
PrestaShop's granular order states matter more here than for an ad pixel. A bank-wire order validates in an awaiting-payment state and is not revenue yet; either send only when the order moves to a paid state through actionOrderStatusPostUpdate, or send a follow-up when it is paid or cancelled. Credit slips (actionOrderSlipAdd) should arrive as negative revenue, or cohort lifetime value overstates by your return rate.
PrestaShop → Amplitude · what breaks
Why this join usually fails — PrestaShop → Amplitude
- 01
The user ID and device ID pair 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.
- 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.
- 03
Revenue events that carry no revenue
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
- 04
Nothing reconciles afterwards
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
PrestaShop → Amplitude · the fix
What working looks like — PrestaShop → Amplitude
The user ID and device ID pair on every order
Conversions arriving in Amplitude
The event lands on the user, joins their behavioural history, and becomes available for cohorts, funnels and retention.
Reconciled against the source
PrestaShop → Amplitude · architecture
How PrestaShop and Amplitude actually connect
- 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
Amplitude needs a click to match
Amplitude needs a device or user identifier, an event type and its properties. Revenue events need the price and quantity fields specifically, or the revenue reporting stays empty while events flow normally.
- 3
The identifier is the bridge
The user ID and device ID pair, captured at the visit and carried into the PrestaShop order.
- 4
The event source decides reliability
Fire server-side from the hook rather than the confirmation template.
- 5
Deduplication at the destination
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
PrestaShop → Amplitude · normal or broken
Working vs. broken, side by side — PrestaShop → Amplitude
Normal, not a fault
The user ID and device ID pair present on the order
Sent from the PrestaShop order validation hook
Deduplicated correctly
Amplitude deduplicates on insert_id. Omit it and a retried batch is counted twice, which shows up as a phantom spike that someone will eventually build a hypothesis on.
Reconciles with the source
Actually broken
The user ID and device ID pair 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
Amplitude will happily accept a purchase event with no price field. The event count looks correct, the funnel looks correct, and the revenue reporting stays at zero — which people usually discover a quarter later when someone asks what a cohort is worth.
Nobody has reconciled it
PrestaShop → Amplitude · diagnose
Diagnostic order — PrestaShop → Amplitude
- 01
Count orders carrying the user ID and device ID pair
- 02
Follow one real conversion end to end
- 03
Check order metadata on ten recent orders
Partial coverage across orders points at a module conflict rather than a missing implementation.
- 04
Check a purchase event for the price and quantity fields specifically
Not whether the event arrived — whether the revenue fields are populated, in the exact names Amplitude expects.
- 05
Read the match rate, not the success message
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
PrestaShop → Amplitude · prove
How it gets proven — PrestaShop → Amplitude
Source of truth
PrestaShop's order records in your own database, for the same window and order state set.
- The user ID and device ID pair confirmed present on a live order.
- Revenue reconciled per transaction against your billing system, with identity merge behaviour verified across signup.
- Order metadata confirmed present across ten consecutive orders rather than one.
PrestaShop → Amplitude · free audit
What we check in the free audit
- Count orders carrying the user ID and device ID pair
- Follow one real conversion end to end
- Check order metadata on ten recent orders
- Check a purchase event for the price and quantity fields specifically
- 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.
Free30 minutesNo obligation
PrestaShop → Amplitude · when not to buy
When you don't need this — PrestaShop → Amplitude
- Measure identifier coverage yourself first — pull your last hundred orders and count how many carry the user ID and device ID pair.
- If your PrestaShop install is heavily moduled and maintained by another party, scope their involvement before starting.
- If nobody is building cohorts or retention analysis, this is a large amount of instrumentation for reporting a dashboard already gives you.
PrestaShop → Amplitude · what we deliver
What gets built — PrestaShop → Amplitude
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 Amplitude
The Amplitude HTTP V2 API, posted server-side with the identity, event type and properties.
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.
From $400 · See packages
FAQ
PrestaShop → Amplitude questions, answered
Fire a server-side event from PrestaShop's order validation or status-update hook to Amplitude's HTTP API, with the customer's user ID and price and quantity per product. Check for a maintained module for your PrestaShop version first.
Guest checkouts can create separate customer records, so id_customer differs between purchases. Use a hashed email as the user ID, or merge guest records before sending.
Almost always because the user ID and device ID pair never reached the PrestaShop order. Module conflicts and caching both interfere with anything running in the page, and multi-store installations complicate which store an order belongs to. Measure coverage before debugging the dispatch.
Amplitude tracks both a device ID and a user ID and merges them when a user identifies. The merge rules decide who counts as one person, so a mistake here does not produce a small error — it changes every retention curve and cohort size in the account.
The PrestaShop order validation hook. Fire server-side from the hook rather than the confirmation template.
Amplitude shows the event in the user's activity stream with its properties expanded. Read the properties, because an event that arrives without its revenue fields still looks like a success.
More on PrestaShop → Amplitude
- PrestaShop → Google AdsConnecting PrestaShop to Google Ads
- PrestaShop → MetaConnecting PrestaShop to Meta Conversions API
- PrestaShop → GA4Connecting PrestaShop to GA4
RELATED GUIDES
Where PrestaShop → Amplitude fits in the rest of your tracking
- Braintree → AmplitudeConnecting Braintree to Amplitude
- Ecwid → AmplitudeConnecting Ecwid to Amplitude
- BigCommerce → AmplitudeConnecting BigCommerce to Amplitude
- PrestaShop → MixpanelConnecting PrestaShop to Mixpanel
- PrestaShop → Adobe AnalyticsConnecting PrestaShop to Adobe Analytics
- Jewelry ecommerceConversion tracking for jewelry ecommerce, measured in settled orders
- WooCommerce → AmplitudeConnecting WooCommerce to Amplitude
- Swell → AmplitudeConnecting Swell to Amplitude
Free · 30 min
Get PrestaShop and Amplitude joined properly
Free30 minutesNo obligation
