[{"data":1,"prerenderedAt":1647},["ShallowReactive",2],{"navigation_docs":3,"-connectors-webhooks":140,"-connectors-webhooks-surround":1642},[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":75,"body":142,"description":1635,"extension":1636,"links":1637,"meta":1638,"navigation":1639,"path":76,"seo":1640,"stem":77,"__hash__":1641},"docs/3.connectors/7.webhooks.md",{"type":143,"value":144,"toc":1610},"minimark",[145,149,154,157,168,171,176,205,208,212,233,240,243,247,253,297,306,310,411,413,417,455,457,461,472,475,607,610,1084,1086,1090,1093,1207,1210,1306,1308,1312,1315,1322,1344,1424,1433,1440,1442,1446,1456,1503,1505,1509,1516,1518,1522,1528,1543,1549,1557,1563,1571,1575,1606],[146,147,148],"p",{},"Custom webhooks let you send conversion events (purchases, leads, sign-ups, etc.) directly to TrustData from your server, CRM, or any platform that can make HTTP requests.",[150,151,153],"h2",{"id":152},"how-it-works","How it works",[146,155,156],{},"Instead of relying on browser-side tracking, you POST a JSON payload to a TrustData endpoint. TrustData matches the event to a tracked session and attributes it to the correct ad campaign.",[158,159,164],"pre",{"className":160,"code":162,"language":163},[161],"language-text","Your server → POST /webhooks/custom/{attribution_id}/{topic}\n                     ↓\n          TrustData matches to visitor session\n                     ↓\n          Attribution credit assigned to campaign\n                     ↓\n          Conversion forwarded to ad platforms (if enabled)\n","text",[165,166,162],"code",{"__ignoreMap":167},"",[150,169,133],{"id":170},"setup",[172,173,175],"h3",{"id":174},"enable-webhook-receiving","Enable webhook receiving",[177,178,179,192,199],"ol",{},[180,181,182,183,187,188,191],"li",{},"Go to ",[184,185,186],"strong",{},"Settings"," → ",[184,189,190],{},"Attribution IDs"," → select your ID",[180,193,194,195,198],{},"Open the ",[184,196,197],{},"Webhooks"," tab",[180,200,201,202],{},"Click ",[184,203,204],{},"Enable",[146,206,207],{},"Once enabled, the endpoint URL and API key section appear.",[172,209,211],{"id":210},"generate-an-api-key","Generate an API key",[177,213,214,225,230],{},[180,215,216,217,220,221,224],{},"Enter a name for the key (e.g., ",[165,218,219],{},"Backend prod",", ",[165,222,223],{},"Shopify prod",")",[180,226,201,227],{},[184,228,229],{},"Generate Key",[180,231,232],{},"Copy the key immediately — it is shown only once",[146,234,235,236,239],{},"Keys use the format ",[165,237,238],{},"td_wh_\u003Crandom>",". Only the prefix is stored in TrustData; the full key cannot be recovered after creation. If lost, revoke it and generate a new one.",[241,242],"hr",{},[150,244,246],{"id":245},"endpoint","Endpoint",[158,248,251],{"className":249,"code":250,"language":163},[161],"POST https://t.trustdata.tech/webhooks/custom/{attribution_id}/{topic}\n",[165,252,250],{"__ignoreMap":167},[254,255,256,269],"table",{},[257,258,259],"thead",{},[260,261,262,266],"tr",{},[263,264,265],"th",{},"Path parameter",[263,267,268],{},"Description",[270,271,272,287],"tbody",{},[260,273,274,280],{},[275,276,277],"td",{},[165,278,279],{},"attribution_id",[275,281,282,283,187,285],{},"Your attribution ID from ",[184,284,186],{},[184,286,190],{},[260,288,289,294],{},[275,290,291],{},[165,292,293],{},"topic",[275,295,296],{},"Event type — see table below",[298,299,301,302,305],"callout",{"icon":300},"i-lucide-info","If you have a verified custom tracking domain, use it instead of ",[165,303,304],{},"t.trustdata.tech",".",[172,307,309],{"id":308},"topics","Topics",[254,311,312,324],{},[257,313,314],{},[260,315,316,319,322],{},[263,317,318],{},"Topic",[263,320,321],{},"Equivalent SDK event",[263,323,268],{},[270,325,326,340,355,370,383,395],{},[260,327,328,333,337],{},[275,329,330],{},[165,331,332],{},"purchase",[275,334,335],{},[165,336,332],{},[275,338,339],{},"Completed transaction",[260,341,342,347,352],{},[275,343,344],{},[165,345,346],{},"lead",[275,348,349],{},[165,350,351],{},"generate_lead",[275,353,354],{},"Lead form submission",[260,356,357,362,367],{},[275,358,359],{},[165,360,361],{},"signup",[275,363,364],{},[165,365,366],{},"sign_up",[275,368,369],{},"Account registration",[260,371,372,377,380],{},[275,373,374],{},[165,375,376],{},"refund",[275,378,379],{},"—",[275,381,382],{},"Order refunded",[260,384,385,390,392],{},[275,386,387],{},[165,388,389],{},"subscription",[275,391,379],{},[275,393,394],{},"Subscription started",[260,396,397,402,408],{},[275,398,399],{},[165,400,401],{},"custom",[275,403,404],{},[405,406,407],"em",{},"(any name)",[275,409,410],{},"Custom event",[241,412],{},[150,414,416],{"id":415},"authentication","Authentication",[254,418,419,429],{},[257,420,421],{},[260,422,423,426],{},[263,424,425],{},"Header",[263,427,428],{},"Value",[270,430,431,443],{},[260,432,433,438],{},[275,434,435],{},[165,436,437],{},"Authorization",[275,439,440],{},[165,441,442],{},"Bearer td_wh_...",[260,444,445,450],{},[275,446,447],{},[165,448,449],{},"Content-Type",[275,451,452],{},[165,453,454],{},"application/json",[241,456],{},[150,458,460],{"id":459},"payload","Payload",[146,462,463,464,467,468,471],{},"The webhook payload uses ",[184,465,466],{},"the same schema as the JavaScript SDK"," — same field names, same objects. See the ",[469,470,42],"a",{"href":43}," for the full reference.",[146,473,474],{},"A minimal purchase example:",[158,476,480],{"className":477,"code":478,"language":479,"meta":167,"style":167},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"conversion_id\": \"ORD-12345\",\n  \"value\": 149.99,\n  \"currency\": \"USD\",\n  \"user_data\": {\n    \"email\": \"customer@example.com\"\n  }\n}\n","json",[165,481,482,491,519,537,558,573,595,601],{"__ignoreMap":167},[483,484,487],"span",{"class":485,"line":486},"line",1,[483,488,490],{"class":489},"sMK4o","{\n",[483,492,494,497,501,504,507,510,514,516],{"class":485,"line":493},2,[483,495,496],{"class":489},"  \"",[483,498,500],{"class":499},"spNyl","conversion_id",[483,502,503],{"class":489},"\"",[483,505,506],{"class":489},":",[483,508,509],{"class":489}," \"",[483,511,513],{"class":512},"sfazB","ORD-12345",[483,515,503],{"class":489},[483,517,518],{"class":489},",\n",[483,520,522,524,527,529,531,535],{"class":485,"line":521},3,[483,523,496],{"class":489},[483,525,526],{"class":499},"value",[483,528,503],{"class":489},[483,530,506],{"class":489},[483,532,534],{"class":533},"sbssI"," 149.99",[483,536,518],{"class":489},[483,538,540,542,545,547,549,551,554,556],{"class":485,"line":539},4,[483,541,496],{"class":489},[483,543,544],{"class":499},"currency",[483,546,503],{"class":489},[483,548,506],{"class":489},[483,550,509],{"class":489},[483,552,553],{"class":512},"USD",[483,555,503],{"class":489},[483,557,518],{"class":489},[483,559,561,563,566,568,570],{"class":485,"line":560},5,[483,562,496],{"class":489},[483,564,565],{"class":499},"user_data",[483,567,503],{"class":489},[483,569,506],{"class":489},[483,571,572],{"class":489}," {\n",[483,574,576,579,583,585,587,589,592],{"class":485,"line":575},6,[483,577,578],{"class":489},"    \"",[483,580,582],{"class":581},"sBMFI","email",[483,584,503],{"class":489},[483,586,506],{"class":489},[483,588,509],{"class":489},[483,590,591],{"class":512},"customer@example.com",[483,593,594],{"class":489},"\"\n",[483,596,598],{"class":485,"line":597},7,[483,599,600],{"class":489},"  }\n",[483,602,604],{"class":485,"line":603},8,[483,605,606],{"class":489},"}\n",[146,608,609],{},"A complete purchase with all signals:",[158,611,613],{"className":477,"code":612,"language":479,"meta":167,"style":167},"{\n  \"conversion_id\": \"ORD-12345\",\n  \"value\": 149.99,\n  \"currency\": \"USD\",\n  \"tax\": 12.50,\n  \"shipping\": 5.99,\n  \"discount_code\": \"SUMMER20\",\n  \"user_data\": {\n    \"email\": \"customer@example.com\",\n    \"phone\": \"+15551234567\",\n    \"first_name\": \"Jane\",\n    \"last_name\": \"Doe\",\n    \"address\": {\n      \"city\": \"New York\",\n      \"region\": \"NY\",\n      \"postal_code\": \"10001\",\n      \"country\": \"US\"\n    }\n  },\n  \"products\": [\n    {\n      \"id\": \"SKU123\",\n      \"name\": \"Widget Pro\",\n      \"quantity\": 2,\n      \"price\": 49.99\n    }\n  ],\n  \"consent\": {\n    \"analytics\": true,\n    \"advertising\": true\n  }\n}\n",[165,614,615,619,637,651,669,685,701,721,733,752,773,794,815,829,851,872,893,912,918,924,939,945,966,987,1004,1019,1024,1030,1044,1059,1074,1079],{"__ignoreMap":167},[483,616,617],{"class":485,"line":486},[483,618,490],{"class":489},[483,620,621,623,625,627,629,631,633,635],{"class":485,"line":493},[483,622,496],{"class":489},[483,624,500],{"class":499},[483,626,503],{"class":489},[483,628,506],{"class":489},[483,630,509],{"class":489},[483,632,513],{"class":512},[483,634,503],{"class":489},[483,636,518],{"class":489},[483,638,639,641,643,645,647,649],{"class":485,"line":521},[483,640,496],{"class":489},[483,642,526],{"class":499},[483,644,503],{"class":489},[483,646,506],{"class":489},[483,648,534],{"class":533},[483,650,518],{"class":489},[483,652,653,655,657,659,661,663,665,667],{"class":485,"line":539},[483,654,496],{"class":489},[483,656,544],{"class":499},[483,658,503],{"class":489},[483,660,506],{"class":489},[483,662,509],{"class":489},[483,664,553],{"class":512},[483,666,503],{"class":489},[483,668,518],{"class":489},[483,670,671,673,676,678,680,683],{"class":485,"line":560},[483,672,496],{"class":489},[483,674,675],{"class":499},"tax",[483,677,503],{"class":489},[483,679,506],{"class":489},[483,681,682],{"class":533}," 12.50",[483,684,518],{"class":489},[483,686,687,689,692,694,696,699],{"class":485,"line":575},[483,688,496],{"class":489},[483,690,691],{"class":499},"shipping",[483,693,503],{"class":489},[483,695,506],{"class":489},[483,697,698],{"class":533}," 5.99",[483,700,518],{"class":489},[483,702,703,705,708,710,712,714,717,719],{"class":485,"line":597},[483,704,496],{"class":489},[483,706,707],{"class":499},"discount_code",[483,709,503],{"class":489},[483,711,506],{"class":489},[483,713,509],{"class":489},[483,715,716],{"class":512},"SUMMER20",[483,718,503],{"class":489},[483,720,518],{"class":489},[483,722,723,725,727,729,731],{"class":485,"line":603},[483,724,496],{"class":489},[483,726,565],{"class":499},[483,728,503],{"class":489},[483,730,506],{"class":489},[483,732,572],{"class":489},[483,734,736,738,740,742,744,746,748,750],{"class":485,"line":735},9,[483,737,578],{"class":489},[483,739,582],{"class":581},[483,741,503],{"class":489},[483,743,506],{"class":489},[483,745,509],{"class":489},[483,747,591],{"class":512},[483,749,503],{"class":489},[483,751,518],{"class":489},[483,753,755,757,760,762,764,766,769,771],{"class":485,"line":754},10,[483,756,578],{"class":489},[483,758,759],{"class":581},"phone",[483,761,503],{"class":489},[483,763,506],{"class":489},[483,765,509],{"class":489},[483,767,768],{"class":512},"+15551234567",[483,770,503],{"class":489},[483,772,518],{"class":489},[483,774,776,778,781,783,785,787,790,792],{"class":485,"line":775},11,[483,777,578],{"class":489},[483,779,780],{"class":581},"first_name",[483,782,503],{"class":489},[483,784,506],{"class":489},[483,786,509],{"class":489},[483,788,789],{"class":512},"Jane",[483,791,503],{"class":489},[483,793,518],{"class":489},[483,795,797,799,802,804,806,808,811,813],{"class":485,"line":796},12,[483,798,578],{"class":489},[483,800,801],{"class":581},"last_name",[483,803,503],{"class":489},[483,805,506],{"class":489},[483,807,509],{"class":489},[483,809,810],{"class":512},"Doe",[483,812,503],{"class":489},[483,814,518],{"class":489},[483,816,818,820,823,825,827],{"class":485,"line":817},13,[483,819,578],{"class":489},[483,821,822],{"class":581},"address",[483,824,503],{"class":489},[483,826,506],{"class":489},[483,828,572],{"class":489},[483,830,832,835,838,840,842,844,847,849],{"class":485,"line":831},14,[483,833,834],{"class":489},"      \"",[483,836,837],{"class":533},"city",[483,839,503],{"class":489},[483,841,506],{"class":489},[483,843,509],{"class":489},[483,845,846],{"class":512},"New York",[483,848,503],{"class":489},[483,850,518],{"class":489},[483,852,854,856,859,861,863,865,868,870],{"class":485,"line":853},15,[483,855,834],{"class":489},[483,857,858],{"class":533},"region",[483,860,503],{"class":489},[483,862,506],{"class":489},[483,864,509],{"class":489},[483,866,867],{"class":512},"NY",[483,869,503],{"class":489},[483,871,518],{"class":489},[483,873,875,877,880,882,884,886,889,891],{"class":485,"line":874},16,[483,876,834],{"class":489},[483,878,879],{"class":533},"postal_code",[483,881,503],{"class":489},[483,883,506],{"class":489},[483,885,509],{"class":489},[483,887,888],{"class":512},"10001",[483,890,503],{"class":489},[483,892,518],{"class":489},[483,894,896,898,901,903,905,907,910],{"class":485,"line":895},17,[483,897,834],{"class":489},[483,899,900],{"class":533},"country",[483,902,503],{"class":489},[483,904,506],{"class":489},[483,906,509],{"class":489},[483,908,909],{"class":512},"US",[483,911,594],{"class":489},[483,913,915],{"class":485,"line":914},18,[483,916,917],{"class":489},"    }\n",[483,919,921],{"class":485,"line":920},19,[483,922,923],{"class":489},"  },\n",[483,925,927,929,932,934,936],{"class":485,"line":926},20,[483,928,496],{"class":489},[483,930,931],{"class":499},"products",[483,933,503],{"class":489},[483,935,506],{"class":489},[483,937,938],{"class":489}," [\n",[483,940,942],{"class":485,"line":941},21,[483,943,944],{"class":489},"    {\n",[483,946,948,950,953,955,957,959,962,964],{"class":485,"line":947},22,[483,949,834],{"class":489},[483,951,952],{"class":581},"id",[483,954,503],{"class":489},[483,956,506],{"class":489},[483,958,509],{"class":489},[483,960,961],{"class":512},"SKU123",[483,963,503],{"class":489},[483,965,518],{"class":489},[483,967,969,971,974,976,978,980,983,985],{"class":485,"line":968},23,[483,970,834],{"class":489},[483,972,973],{"class":581},"name",[483,975,503],{"class":489},[483,977,506],{"class":489},[483,979,509],{"class":489},[483,981,982],{"class":512},"Widget Pro",[483,984,503],{"class":489},[483,986,518],{"class":489},[483,988,990,992,995,997,999,1002],{"class":485,"line":989},24,[483,991,834],{"class":489},[483,993,994],{"class":581},"quantity",[483,996,503],{"class":489},[483,998,506],{"class":489},[483,1000,1001],{"class":533}," 2",[483,1003,518],{"class":489},[483,1005,1007,1009,1012,1014,1016],{"class":485,"line":1006},25,[483,1008,834],{"class":489},[483,1010,1011],{"class":581},"price",[483,1013,503],{"class":489},[483,1015,506],{"class":489},[483,1017,1018],{"class":533}," 49.99\n",[483,1020,1022],{"class":485,"line":1021},26,[483,1023,917],{"class":489},[483,1025,1027],{"class":485,"line":1026},27,[483,1028,1029],{"class":489},"  ],\n",[483,1031,1033,1035,1038,1040,1042],{"class":485,"line":1032},28,[483,1034,496],{"class":489},[483,1036,1037],{"class":499},"consent",[483,1039,503],{"class":489},[483,1041,506],{"class":489},[483,1043,572],{"class":489},[483,1045,1047,1049,1052,1054,1056],{"class":485,"line":1046},29,[483,1048,578],{"class":489},[483,1050,1051],{"class":581},"analytics",[483,1053,503],{"class":489},[483,1055,506],{"class":489},[483,1057,1058],{"class":489}," true,\n",[483,1060,1062,1064,1067,1069,1071],{"class":485,"line":1061},30,[483,1063,578],{"class":489},[483,1065,1066],{"class":581},"advertising",[483,1068,503],{"class":489},[483,1070,506],{"class":489},[483,1072,1073],{"class":489}," true\n",[483,1075,1077],{"class":485,"line":1076},31,[483,1078,600],{"class":489},[483,1080,1082],{"class":485,"line":1081},32,[483,1083,606],{"class":489},[241,1085],{},[150,1087,1089],{"id":1088},"examples","Examples",[172,1091,1092],{"id":332},"Purchase",[158,1094,1098],{"className":1095,"code":1096,"language":1097,"meta":167,"style":167},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -X POST \\\n  https://t.trustdata.tech/webhooks/custom/YOUR_ATTRIBUTION_ID/purchase \\\n  -H \"Authorization: Bearer td_wh_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"conversion_id\": \"ORD-12345\",\n    \"value\": 149.99,\n    \"currency\": \"USD\",\n    \"user_data\": {\n      \"email\": \"customer@example.com\",\n      \"phone\": \"+15551234567\"\n    },\n    \"consent\": { \"analytics\": true, \"advertising\": true }\n  }'\n","bash",[165,1099,1100,1115,1122,1136,1149,1159,1164,1169,1174,1179,1184,1189,1194,1199],{"__ignoreMap":167},[483,1101,1102,1105,1108,1111],{"class":485,"line":486},[483,1103,1104],{"class":581},"curl",[483,1106,1107],{"class":512}," -X",[483,1109,1110],{"class":512}," POST",[483,1112,1114],{"class":1113},"sTEyZ"," \\\n",[483,1116,1117,1120],{"class":485,"line":493},[483,1118,1119],{"class":512},"  https://t.trustdata.tech/webhooks/custom/YOUR_ATTRIBUTION_ID/purchase",[483,1121,1114],{"class":1113},[483,1123,1124,1127,1129,1132,1134],{"class":485,"line":521},[483,1125,1126],{"class":512},"  -H",[483,1128,509],{"class":489},[483,1130,1131],{"class":512},"Authorization: Bearer td_wh_your_key_here",[483,1133,503],{"class":489},[483,1135,1114],{"class":1113},[483,1137,1138,1140,1142,1145,1147],{"class":485,"line":539},[483,1139,1126],{"class":512},[483,1141,509],{"class":489},[483,1143,1144],{"class":512},"Content-Type: application/json",[483,1146,503],{"class":489},[483,1148,1114],{"class":1113},[483,1150,1151,1154,1157],{"class":485,"line":560},[483,1152,1153],{"class":512},"  -d",[483,1155,1156],{"class":489}," '",[483,1158,490],{"class":512},[483,1160,1161],{"class":485,"line":575},[483,1162,1163],{"class":512},"    \"conversion_id\": \"ORD-12345\",\n",[483,1165,1166],{"class":485,"line":597},[483,1167,1168],{"class":512},"    \"value\": 149.99,\n",[483,1170,1171],{"class":485,"line":603},[483,1172,1173],{"class":512},"    \"currency\": \"USD\",\n",[483,1175,1176],{"class":485,"line":735},[483,1177,1178],{"class":512},"    \"user_data\": {\n",[483,1180,1181],{"class":485,"line":754},[483,1182,1183],{"class":512},"      \"email\": \"customer@example.com\",\n",[483,1185,1186],{"class":485,"line":775},[483,1187,1188],{"class":512},"      \"phone\": \"+15551234567\"\n",[483,1190,1191],{"class":485,"line":796},[483,1192,1193],{"class":512},"    },\n",[483,1195,1196],{"class":485,"line":817},[483,1197,1198],{"class":512},"    \"consent\": { \"analytics\": true, \"advertising\": true }\n",[483,1200,1201,1204],{"class":485,"line":831},[483,1202,1203],{"class":512},"  }",[483,1205,1206],{"class":489},"'\n",[172,1208,1209],{"id":346},"Lead",[158,1211,1213],{"className":1095,"code":1212,"language":1097,"meta":167,"style":167},"curl -X POST \\\n  https://t.trustdata.tech/webhooks/custom/YOUR_ATTRIBUTION_ID/lead \\\n  -H \"Authorization: Bearer td_wh_your_key_here\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"conversion_id\": \"lead_abc789\",\n    \"value\": 50,\n    \"currency\": \"USD\",\n    \"lead_type\": \"demo_request\",\n    \"user_data\": {\n      \"email\": \"prospect@example.com\"\n    },\n    \"consent\": { \"analytics\": true, \"advertising\": true }\n  }'\n",[165,1214,1215,1225,1232,1244,1256,1264,1269,1274,1278,1283,1287,1292,1296,1300],{"__ignoreMap":167},[483,1216,1217,1219,1221,1223],{"class":485,"line":486},[483,1218,1104],{"class":581},[483,1220,1107],{"class":512},[483,1222,1110],{"class":512},[483,1224,1114],{"class":1113},[483,1226,1227,1230],{"class":485,"line":493},[483,1228,1229],{"class":512},"  https://t.trustdata.tech/webhooks/custom/YOUR_ATTRIBUTION_ID/lead",[483,1231,1114],{"class":1113},[483,1233,1234,1236,1238,1240,1242],{"class":485,"line":521},[483,1235,1126],{"class":512},[483,1237,509],{"class":489},[483,1239,1131],{"class":512},[483,1241,503],{"class":489},[483,1243,1114],{"class":1113},[483,1245,1246,1248,1250,1252,1254],{"class":485,"line":539},[483,1247,1126],{"class":512},[483,1249,509],{"class":489},[483,1251,1144],{"class":512},[483,1253,503],{"class":489},[483,1255,1114],{"class":1113},[483,1257,1258,1260,1262],{"class":485,"line":560},[483,1259,1153],{"class":512},[483,1261,1156],{"class":489},[483,1263,490],{"class":512},[483,1265,1266],{"class":485,"line":575},[483,1267,1268],{"class":512},"    \"conversion_id\": \"lead_abc789\",\n",[483,1270,1271],{"class":485,"line":597},[483,1272,1273],{"class":512},"    \"value\": 50,\n",[483,1275,1276],{"class":485,"line":603},[483,1277,1173],{"class":512},[483,1279,1280],{"class":485,"line":735},[483,1281,1282],{"class":512},"    \"lead_type\": \"demo_request\",\n",[483,1284,1285],{"class":485,"line":754},[483,1286,1178],{"class":512},[483,1288,1289],{"class":485,"line":775},[483,1290,1291],{"class":512},"      \"email\": \"prospect@example.com\"\n",[483,1293,1294],{"class":485,"line":796},[483,1295,1193],{"class":512},[483,1297,1298],{"class":485,"line":817},[483,1299,1198],{"class":512},[483,1301,1302,1304],{"class":485,"line":831},[483,1303,1203],{"class":512},[483,1305,1206],{"class":489},[241,1307],{},[150,1309,1311],{"id":1310},"session-matching","Session matching",[146,1313,1314],{},"TrustData links the incoming webhook to a browser session it has already tracked. The session match is what ties the conversion back to the ad click that drove it.",[146,1316,1317,1318,1321],{},"Matching uses ",[165,1319,1320],{},"visitor_id"," — the anonymous ID the JavaScript SDK assigns to the visitor. Pass it from your frontend to your backend when a conversion occurs.",[158,1323,1327],{"className":1324,"code":1325,"language":1326,"meta":167,"style":167},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","// Frontend: get the visitor ID at checkout\nconst visitorId = trustdata.getVisitorId();\n// Pass visitorId to your backend with the order\n","javascript",[165,1328,1329,1334,1339],{"__ignoreMap":167},[483,1330,1331],{"class":485,"line":486},[483,1332,1333],{},"// Frontend: get the visitor ID at checkout\n",[483,1335,1336],{"class":485,"line":493},[483,1337,1338],{},"const visitorId = trustdata.getVisitorId();\n",[483,1340,1341],{"class":485,"line":521},[483,1342,1343],{},"// Pass visitorId to your backend with the order\n",[158,1345,1347],{"className":477,"code":1346,"language":479,"meta":167,"style":167},"{\n  \"conversion_id\": \"ORD-12345\",\n  \"visitor_id\": \"the-id-from-getVisitorId\",\n  \"value\": 149.99,\n  \"currency\": \"USD\"\n}\n",[165,1348,1349,1353,1371,1390,1404,1420],{"__ignoreMap":167},[483,1350,1351],{"class":485,"line":486},[483,1352,490],{"class":489},[483,1354,1355,1357,1359,1361,1363,1365,1367,1369],{"class":485,"line":493},[483,1356,496],{"class":489},[483,1358,500],{"class":499},[483,1360,503],{"class":489},[483,1362,506],{"class":489},[483,1364,509],{"class":489},[483,1366,513],{"class":512},[483,1368,503],{"class":489},[483,1370,518],{"class":489},[483,1372,1373,1375,1377,1379,1381,1383,1386,1388],{"class":485,"line":521},[483,1374,496],{"class":489},[483,1376,1320],{"class":499},[483,1378,503],{"class":489},[483,1380,506],{"class":489},[483,1382,509],{"class":489},[483,1384,1385],{"class":512},"the-id-from-getVisitorId",[483,1387,503],{"class":489},[483,1389,518],{"class":489},[483,1391,1392,1394,1396,1398,1400,1402],{"class":485,"line":539},[483,1393,496],{"class":489},[483,1395,526],{"class":499},[483,1397,503],{"class":489},[483,1399,506],{"class":489},[483,1401,534],{"class":533},[483,1403,518],{"class":489},[483,1405,1406,1408,1410,1412,1414,1416,1418],{"class":485,"line":560},[483,1407,496],{"class":489},[483,1409,544],{"class":499},[483,1411,503],{"class":489},[483,1413,506],{"class":489},[483,1415,509],{"class":489},[483,1417,553],{"class":512},[483,1419,594],{"class":489},[483,1421,1422],{"class":485,"line":575},[483,1423,606],{"class":489},[146,1425,1426,1428,1429,1432],{},[165,1427,565],{}," (email, phone, etc.) is used for ",[184,1430,1431],{},"enhanced conversion forwarding"," to ad platforms — not for session matching.",[146,1434,1435,1436,1439],{},"If a match is found (",[165,1437,1438],{},"session_matched: true"," in the audit log), the conversion is attributed to the campaign and forwarded to ad platforms.",[241,1441],{},[150,1443,1445],{"id":1444},"viewing-webhook-activity","Viewing webhook activity",[146,1447,1448,1449,1452,1453,1455],{},"The ",[184,1450,1451],{},"Recent Activity"," section in the ",[184,1454,197],{}," tab shows the last 20 requests:",[254,1457,1458,1467],{},[257,1459,1460],{},[260,1461,1462,1465],{},[263,1463,1464],{},"Column",[263,1466,268],{},[270,1468,1469,1488,1495],{},[260,1470,1471,1474],{},[275,1472,1473],{},"Status",[275,1475,1476,220,1479,220,1482,220,1485],{},[165,1477,1478],{},"success",[165,1480,1481],{},"auth_error",[165,1483,1484],{},"validation_error",[165,1486,1487],{},"rate_limited",[260,1489,1490,1492],{},[275,1491,318],{},[275,1493,1494],{},"The event topic you sent",[260,1496,1497,1500],{},[275,1498,1499],{},"Session matched",[275,1501,1502],{},"Whether TrustData linked the event to a known visitor",[241,1504],{},[150,1506,1508],{"id":1507},"rate-limits","Rate limits",[146,1510,1511,1512,1515],{},"Default limit: ",[184,1513,1514],{},"60 requests per minute"," per API key. Adjustable per key in the dashboard.",[241,1517],{},[150,1519,1521],{"id":1520},"troubleshooting","Troubleshooting",[172,1523,1525],{"id":1524},"_401-unauthorized",[165,1526,1527],{},"401 Unauthorized",[1529,1530,1531,1537,1540],"ul",{},[180,1532,1533,1534],{},"Check the header is correctly formatted: ",[165,1535,1536],{},"Authorization: Bearer td_wh_...",[180,1538,1539],{},"Verify the API key is active (not revoked)",[180,1541,1542],{},"Ensure no extra whitespace around the token",[172,1544,1546],{"id":1545},"_404-not-found",[165,1547,1548],{},"404 Not Found",[1529,1550,1551,1554],{},[180,1552,1553],{},"Verify the attribution ID in the URL is correct",[180,1555,1556],{},"Confirm webhook receiving is enabled for that attribution ID",[172,1558,1560],{"id":1559},"_429-too-many-requests",[165,1561,1562],{},"429 Too Many Requests",[1529,1564,1565,1568],{},[180,1566,1567],{},"You have exceeded the rate limit for the API key",[180,1569,1570],{},"Reduce request frequency or raise the limit in the dashboard",[172,1572,1574],{"id":1573},"event-not-attributed","Event not attributed",[1529,1576,1577,1591,1600,1603],{},[180,1578,1579,1580,1582,1583,1586,1587,1590],{},"Check ",[184,1581,1451],{}," — if ",[165,1584,1585],{},"session_matched"," is ",[165,1588,1589],{},"false",", the webhook was received but not linked to a visitor",[180,1592,1593,1594,1596,1597,224],{},"Confirm ",[165,1595,1320],{}," is included — it is the primary matching signal (use ",[165,1598,1599],{},"trustdata.getVisitorId()",[180,1601,1602],{},"Confirm the TrustData SDK is installed on your landing pages — sessions need to be tracked first",[180,1604,1605],{},"Check that the event arrived within the lookback window (default: 30 days from click)",[1607,1608,1609],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}",{"title":167,"searchDepth":493,"depth":493,"links":1611},[1612,1613,1617,1620,1621,1622,1626,1627,1628,1629],{"id":152,"depth":493,"text":153},{"id":170,"depth":493,"text":133,"children":1614},[1615,1616],{"id":174,"depth":521,"text":175},{"id":210,"depth":521,"text":211},{"id":245,"depth":493,"text":246,"children":1618},[1619],{"id":308,"depth":521,"text":309},{"id":415,"depth":493,"text":416},{"id":459,"depth":493,"text":460},{"id":1088,"depth":493,"text":1089,"children":1623},[1624,1625],{"id":332,"depth":521,"text":1092},{"id":346,"depth":521,"text":1209},{"id":1310,"depth":493,"text":1311},{"id":1444,"depth":493,"text":1445},{"id":1507,"depth":493,"text":1508},{"id":1520,"depth":493,"text":1521,"children":1630},[1631,1632,1633,1634],{"id":1524,"depth":521,"text":1527},{"id":1545,"depth":521,"text":1548},{"id":1559,"depth":521,"text":1562},{"id":1573,"depth":521,"text":1574},"Send server-side events to TrustData via HTTP POST requests.","md",null,{},true,{"title":75,"description":1635},"pjkJfPXYP12Y9XpueM-w6vU6u8LsD2N3lav31BPaYhw",[1643,1645],{"title":71,"path":72,"stem":73,"description":1644,"children":-1},"Connect Pinterest Ads and configure tracking parameters.",{"title":79,"path":80,"stem":81,"description":1646,"children":-1},"Track orders, refunds, and signups from PrestaShop using the TrustData module.",1774455485916]