The TrustData PrestaShop module sends server-side conversion events to TrustData via webhooks. It hooks into PrestaShop's native event system — no custom code required.
| PrestaShop hook | TrustData event | Shopify equivalent |
|---|---|---|
actionValidateOrder | purchase | orders/paid |
actionOrderSlipAdd | refund | orders/updated (with refunds) |
actionOrderStatusUpdate (cancelled) | refund | orders/cancelled |
actionCustomerAccountAdd | signup | customers/create |
You need:
PrestaShop prod) → click Generate KeyDownload the latest trustdata.zip from the GitHub releases.
trustdata.zip file → click Uploadhttps://t.trustdata.tech by default)The JS SDK sets a _trdt_vid cookie on the visitor's browser. When an order is placed, the module reads this cookie server-side and includes visitor_id in the webhook payload. TrustData uses this to link the purchase back to the original ad click.
Visitor lands on store → JS SDK sets _trdt_vid cookie
Visitor places order → PrestaShop fires actionValidateOrder
Module reads _trdt_vid cookie → includes visitor_id in webhook payload
TrustData matches session → attributes purchase to ad campaign
_trdt_vid)session_matched: false means the webhook arrived but no session was found401 Unauthorized in webhook activityactionValidateOrder fires on your checkout flow (some custom checkouts may use different hooks)