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 uses PrestaShop's native hooks, so you add no custom code.

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. TrustData shows it 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 a customer places an order, 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 on your storefront pages. Without it, TrustData records conversions but cannot attribute them to a campaign.
Loading diagram…

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 TrustData received the webhook but found no session

401 Unauthorized in webhook activity

  • The API key is wrong or revoked. Generate a new key in the dashboard

Orders not appearing

  • Confirm actionValidateOrder fires on your checkout flow. Some custom checkout modules fire different hooks