TrustData
Connectors

PrestaShop

Track orders, refunds, and signups from PrestaShop using the TrustData module.

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.

Event mapping

PrestaShop hookTrustData eventShopify equivalent
actionValidateOrderpurchaseorders/paid
actionOrderSlipAddrefundorders/updated (with refunds)
actionOrderStatusUpdate (cancelled)refundorders/cancelled
actionCustomerAccountAddsignupcustomers/create

Before you start

You need:

  • The TrustData JS SDK installed on your storefront (for session matching — see JavaScript SDK)
  • A webhook API key from your TrustData dashboard

Generate an API key

  1. Go to SettingsAttribution IDs → select your ID
  2. Open the Webhooks tab → click Enable
  3. Enter a name (e.g. PrestaShop prod) → click Generate Key
  4. Copy the key — it is shown only once

Installation

Download the module

Download the latest trustdata.zip from the GitHub releases.

Install in PrestaShop

  1. In your PrestaShop admin, go to ModulesModule Manager
  2. Click Upload a module
  3. Select the trustdata.zip file → click Upload

Configure

  1. Find TrustData in the module list → click Configure
  2. Enter your Attribution ID and API Key
  3. Leave Server URL blank (uses https://t.trustdata.tech by default)
  4. Click Save

How session matching works

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.

Session matching requires the JS SDK to be installed on your storefront pages. Without it, conversions are still recorded but cannot be attributed to a specific campaign.
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

Troubleshooting

Conversions not attributed

  • Confirm the JS SDK is installed on your storefront (check browser DevTools → Application → Cookies for _trdt_vid)
  • Confirm the module is enabled and configured with the correct Attribution ID and API key
  • Check Recent Activity in the TrustData dashboard → Webhooks tab — session_matched: false means the webhook arrived but no session was found

401 Unauthorized in webhook activity

  • Your API key may be incorrect or revoked — regenerate it in the dashboard

Orders not appearing

  • Confirm actionValidateOrder fires on your checkout flow (some custom checkouts may use different hooks)