[{"data":1,"prerenderedAt":536},["ShallowReactive",2],{"navigation_docs":3,"-connectors-prestashop":140,"-connectors-prestashop-surround":531},[4,23,45,86,104,122],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":22},"Getting started","i-lucide-rocket","/getting-started","1.getting-started",[10,14,18],{"title":11,"path":12,"stem":13},"Introduction","/getting-started/introduction","1.getting-started/1.introduction",{"title":15,"path":16,"stem":17},"Quickstart","/getting-started/quickstart","1.getting-started/2.quickstart",{"title":19,"path":20,"stem":21},"Core concepts","/getting-started/concepts","1.getting-started/3.concepts",false,{"title":24,"icon":25,"path":26,"stem":27,"children":28,"page":22},"Tracking SDK","i-lucide-chart-line","/tracking-sdk","2.tracking-sdk",[29,33,37,41],{"title":30,"path":31,"stem":32},"Overview","/tracking-sdk/overview","2.tracking-sdk/1.overview",{"title":34,"path":35,"stem":36},"JavaScript SDK","/tracking-sdk/javascript","2.tracking-sdk/2.javascript",{"title":38,"path":39,"stem":40},"Events reference","/tracking-sdk/events","2.tracking-sdk/3.events",{"title":42,"path":43,"stem":44},"Event schema","/tracking-sdk/event-schema","2.tracking-sdk/4.event-schema",{"title":46,"icon":47,"path":48,"stem":49,"children":50,"page":22},"Connectors","i-lucide-plug","/connectors","3.connectors",[51,54,58,62,66,70,74,78,82],{"title":30,"path":52,"stem":53},"/connectors/overview","3.connectors/1.overview",{"title":55,"path":56,"stem":57},"Google Ads","/connectors/google-ads","3.connectors/2.google-ads",{"title":59,"path":60,"stem":61},"Meta Ads","/connectors/meta-ads","3.connectors/3.meta-ads",{"title":63,"path":64,"stem":65},"TikTok Ads","/connectors/tiktok-ads","3.connectors/4.tiktok-ads",{"title":67,"path":68,"stem":69},"LinkedIn Ads","/connectors/linkedin-ads","3.connectors/5.linkedin-ads",{"title":71,"path":72,"stem":73},"Pinterest Ads","/connectors/pinterest-ads","3.connectors/6.pinterest-ads",{"title":75,"path":76,"stem":77},"Custom webhooks","/connectors/webhooks","3.connectors/7.webhooks",{"title":79,"path":80,"stem":81},"PrestaShop","/connectors/prestashop","3.connectors/8.prestashop",{"title":83,"path":84,"stem":85},"WooCommerce","/connectors/woocommerce","3.connectors/9.woocommerce",{"title":87,"icon":88,"path":89,"stem":90,"children":91,"page":22},"Attribution","i-lucide-git-fork","/attribution","4.attribution",[92,96,100],{"title":93,"path":94,"stem":95},"How attribution works","/attribution/overview","4.attribution/1.overview",{"title":97,"path":98,"stem":99},"Data-driven model","/attribution/data-driven","4.attribution/2.data-driven",{"title":101,"path":102,"stem":103},"Attribution windows","/attribution/windows","4.attribution/3.windows",{"title":105,"icon":106,"path":107,"stem":108,"children":109,"page":22},"Dashboard","i-lucide-layout-dashboard","/dashboard","5.dashboard",[110,114,118],{"title":111,"path":112,"stem":113},"Dashboard overview","/dashboard/overview","5.dashboard/1.overview",{"title":115,"path":116,"stem":117},"Metrics reference","/dashboard/metrics","5.dashboard/2.metrics",{"title":119,"path":120,"stem":121},"Alerts","/dashboard/alerts","5.dashboard/3.alerts",{"title":123,"icon":124,"path":125,"stem":126,"children":127,"page":22},"Lumen","i-lucide-shield-check","/lumen","6.lumen",[128,132,136],{"title":129,"path":130,"stem":131},"Lumen overview","/lumen/overview","6.lumen/1.overview",{"title":133,"path":134,"stem":135},"Setup","/lumen/setup","6.lumen/2.setup",{"title":137,"path":138,"stem":139},"Investigations","/lumen/investigations","6.lumen/3.investigations",{"id":141,"title":79,"body":142,"description":524,"extension":525,"links":526,"meta":527,"navigation":528,"path":80,"seo":529,"stem":81,"__hash__":530},"docs/3.connectors/8.prestashop.md",{"type":143,"value":144,"toc":504},"minimark",[145,149,154,247,250,254,257,280,285,322,324,328,332,346,350,376,380,417,419,423,434,439,449,451,455,459,480,487,492,496],[146,147,148],"p",{},"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.",[150,151,153],"h2",{"id":152},"event-mapping","Event mapping",[155,156,157,173],"table",{},[158,159,160],"thead",{},[161,162,163,167,170],"tr",{},[164,165,166],"th",{},"PrestaShop hook",[164,168,169],{},"TrustData event",[164,171,172],{},"Shopify equivalent",[174,175,176,195,213,230],"tbody",{},[161,177,178,185,190],{},[179,180,181],"td",{},[182,183,184],"code",{},"actionValidateOrder",[179,186,187],{},[182,188,189],{},"purchase",[179,191,192],{},[182,193,194],{},"orders/paid",[161,196,197,202,207],{},[179,198,199],{},[182,200,201],{},"actionOrderSlipAdd",[179,203,204],{},[182,205,206],{},"refund",[179,208,209,212],{},[182,210,211],{},"orders/updated"," (with refunds)",[161,214,215,221,225],{},[179,216,217,220],{},[182,218,219],{},"actionOrderStatusUpdate"," (cancelled)",[179,222,223],{},[182,224,206],{},[179,226,227],{},[182,228,229],{},"orders/cancelled",[161,231,232,237,242],{},[179,233,234],{},[182,235,236],{},"actionCustomerAccountAdd",[179,238,239],{},[182,240,241],{},"signup",[179,243,244],{},[182,245,246],{},"customers/create",[248,249],"hr",{},[150,251,253],{"id":252},"before-you-start","Before you start",[146,255,256],{},"You need:",[258,259,260,273],"ul",{},[261,262,263,264,268,269,272],"li",{},"The ",[265,266,267],"strong",{},"TrustData JS SDK"," installed on your storefront (for session matching — see ",[270,271,34],"a",{"href":35},")",[261,274,275,276,279],{},"A ",[265,277,278],{},"webhook API key"," from your TrustData dashboard",[281,282,284],"h3",{"id":283},"generate-an-api-key","Generate an API key",[286,287,288,299,309,319],"ol",{},[261,289,290,291,294,295,298],{},"Go to ",[265,292,293],{},"Settings"," → ",[265,296,297],{},"Attribution IDs"," → select your ID",[261,300,301,302,305,306],{},"Open the ",[265,303,304],{},"Webhooks"," tab → click ",[265,307,308],{},"Enable",[261,310,311,312,315,316],{},"Enter a name (e.g. ",[182,313,314],{},"PrestaShop prod",") → click ",[265,317,318],{},"Generate Key",[261,320,321],{},"Copy the key — it is shown only once",[248,323],{},[150,325,327],{"id":326},"installation","Installation",[281,329,331],{"id":330},"download-the-module","Download the module",[146,333,334,335,338,339,345],{},"Download the latest ",[182,336,337],{},"trustdata.zip"," from the ",[270,340,344],{"href":341,"rel":342},"https://github.com/trstdata/trustdata-cloud/releases",[343],"nofollow","GitHub releases",".",[281,347,349],{"id":348},"install-in-prestashop","Install in PrestaShop",[286,351,352,361,367],{},[261,353,354,355,294,358],{},"In your PrestaShop admin, go to ",[265,356,357],{},"Modules",[265,359,360],{},"Module Manager",[261,362,363,364],{},"Click ",[265,365,366],{},"Upload a module",[261,368,369,370,372,373],{},"Select the ",[182,371,337],{}," file → click ",[265,374,375],{},"Upload",[281,377,379],{"id":378},"configure","Configure",[286,381,382,391,401,412],{},[261,383,384,385,388,389],{},"Find ",[265,386,387],{},"TrustData"," in the module list → click ",[265,390,379],{},[261,392,393,394,397,398],{},"Enter your ",[265,395,396],{},"Attribution ID"," and ",[265,399,400],{},"API Key",[261,402,403,404,407,408,411],{},"Leave ",[265,405,406],{},"Server URL"," blank (uses ",[182,409,410],{},"https://t.trustdata.tech"," by default)",[261,413,363,414],{},[265,415,416],{},"Save",[248,418],{},[150,420,422],{"id":421},"how-session-matching-works","How session matching works",[146,424,425,426,429,430,433],{},"The JS SDK sets a ",[182,427,428],{},"_trdt_vid"," cookie on the visitor's browser. When an order is placed, the module reads this cookie server-side and includes ",[182,431,432],{},"visitor_id"," in the webhook payload. TrustData uses this to link the purchase back to the original ad click.",[435,436,438],"callout",{"icon":437},"i-lucide-info","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.",[440,441,446],"pre",{"className":442,"code":444,"language":445},[443],"language-text","Visitor lands on store         → JS SDK sets _trdt_vid cookie\nVisitor places order           → PrestaShop fires actionValidateOrder\nModule reads _trdt_vid cookie  → includes visitor_id in webhook payload\nTrustData matches session      → attributes purchase to ad campaign\n","text",[182,447,444],{"__ignoreMap":448},"",[248,450],{},[150,452,454],{"id":453},"troubleshooting","Troubleshooting",[281,456,458],{"id":457},"conversions-not-attributed","Conversions not attributed",[258,460,461,466,469],{},[261,462,463,464,272],{},"Confirm the JS SDK is installed on your storefront (check browser DevTools → Application → Cookies for ",[182,465,428],{},[261,467,468],{},"Confirm the module is enabled and configured with the correct Attribution ID and API key",[261,470,471,472,475,476,479],{},"Check ",[265,473,474],{},"Recent Activity"," in the TrustData dashboard → Webhooks tab — ",[182,477,478],{},"session_matched: false"," means the webhook arrived but no session was found",[281,481,483,486],{"id":482},"_401-unauthorized-in-webhook-activity",[182,484,485],{},"401 Unauthorized"," in webhook activity",[258,488,489],{},[261,490,491],{},"Your API key may be incorrect or revoked — regenerate it in the dashboard",[281,493,495],{"id":494},"orders-not-appearing","Orders not appearing",[258,497,498],{},[261,499,500,501,503],{},"Confirm ",[182,502,184],{}," fires on your checkout flow (some custom checkouts may use different hooks)",{"title":448,"searchDepth":505,"depth":505,"links":506},2,[507,508,512,517,518],{"id":152,"depth":505,"text":153},{"id":252,"depth":505,"text":253,"children":509},[510],{"id":283,"depth":511,"text":284},3,{"id":326,"depth":505,"text":327,"children":513},[514,515,516],{"id":330,"depth":511,"text":331},{"id":348,"depth":511,"text":349},{"id":378,"depth":511,"text":379},{"id":421,"depth":505,"text":422},{"id":453,"depth":505,"text":454,"children":519},[520,521,523],{"id":457,"depth":511,"text":458},{"id":482,"depth":511,"text":522},"401 Unauthorized in webhook activity",{"id":494,"depth":511,"text":495},"Track orders, refunds, and signups from PrestaShop using the TrustData module.","md",null,{},true,{"title":79,"description":524},"o-KJ0bQFPacY0j_PjmjNe6uzR7e3p5bGHEK7eMCyUvg",[532,534],{"title":75,"path":76,"stem":77,"description":533,"children":-1},"Send server-side events to TrustData via HTTP POST requests.",{"title":83,"path":84,"stem":85,"description":535,"children":-1},"Track orders, refunds, and cancellations from WooCommerce using native webhooks.",1774455485934]