[{"data":1,"prerenderedAt":1998},["ShallowReactive",2],{"navigation_docs":3,"-tracking-events":188,"-tracking-events-surround":1993},[4,23,52,81,134,148,166],{"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},"API and agents","i-lucide-bot","/api-agents","10.api-agents",[29,33,36,40,44,48],{"title":30,"path":31,"stem":32},"Overview","/api-agents/overview","10.api-agents/1.overview",{"title":15,"path":34,"stem":35},"/api-agents/quickstart","10.api-agents/2.quickstart",{"title":37,"path":38,"stem":39},"Tools reference","/api-agents/tools-reference","10.api-agents/3.tools-reference",{"title":41,"path":42,"stem":43},"SEO × GEO playbook","/api-agents/playbook-seo-geo","10.api-agents/4.playbook-seo-geo",{"title":45,"path":46,"stem":47},"Scopes and error codes","/api-agents/scopes-and-errors","10.api-agents/5.scopes-and-errors",{"title":49,"path":50,"stem":51},"CLI reference","/api-agents/cli-reference","10.api-agents/6.cli-reference",{"title":53,"icon":54,"path":55,"stem":56,"children":57,"page":22},"Tracking","i-lucide-chart-line","/tracking","2.tracking",[58,61,65,69,73,77],{"title":30,"path":59,"stem":60},"/tracking/overview","2.tracking/1.overview",{"title":62,"path":63,"stem":64},"JavaScript SDK","/tracking/javascript","2.tracking/2.javascript",{"title":66,"path":67,"stem":68},"Google Tag Manager","/tracking/google-tag-manager","2.tracking/3.google-tag-manager",{"title":70,"path":71,"stem":72},"Events reference","/tracking/events","2.tracking/4.events",{"title":74,"path":75,"stem":76},"Event schema","/tracking/event-schema","2.tracking/5.event-schema",{"title":78,"path":79,"stem":80},"First-party tracking domain","/tracking/first-party-domain","2.tracking/6.first-party-domain",{"title":82,"icon":83,"path":84,"stem":85,"children":86,"page":22},"Connectors","i-lucide-plug","/connectors","3.connectors",[87,90,94,98,102,106,110,114,118,122,126,130],{"title":30,"path":88,"stem":89},"/connectors/overview","3.connectors/1.overview",{"title":91,"path":92,"stem":93},"Cloudflare AI crawlers","/connectors/cloudflare-ai-crawlers","3.connectors/10.cloudflare-ai-crawlers",{"title":95,"path":96,"stem":97},"Content change webhooks","/connectors/content-change-webhooks","3.connectors/11.content-change-webhooks",{"title":99,"path":100,"stem":101},"Shopify","/connectors/shopify","3.connectors/12.shopify",{"title":103,"path":104,"stem":105},"Google Ads","/connectors/google-ads","3.connectors/2.google-ads",{"title":107,"path":108,"stem":109},"Meta Ads","/connectors/meta-ads","3.connectors/3.meta-ads",{"title":111,"path":112,"stem":113},"TikTok Ads","/connectors/tiktok-ads","3.connectors/4.tiktok-ads",{"title":115,"path":116,"stem":117},"LinkedIn Ads","/connectors/linkedin-ads","3.connectors/5.linkedin-ads",{"title":119,"path":120,"stem":121},"Pinterest Ads","/connectors/pinterest-ads","3.connectors/6.pinterest-ads",{"title":123,"path":124,"stem":125},"Custom webhooks","/connectors/webhooks","3.connectors/7.webhooks",{"title":127,"path":128,"stem":129},"PrestaShop","/connectors/prestashop","3.connectors/8.prestashop",{"title":131,"path":132,"stem":133},"WooCommerce","/connectors/woocommerce","3.connectors/9.woocommerce",{"title":135,"icon":136,"path":137,"stem":138,"children":139,"page":22},"Analytics","i-lucide-layout-dashboard","/analytics","4.analytics",[140,144],{"title":141,"path":142,"stem":143},"Dashboard overview","/analytics/overview","4.analytics/1.overview",{"title":145,"path":146,"stem":147},"Metrics reference","/analytics/metrics","4.analytics/2.metrics",{"title":149,"icon":150,"path":151,"stem":152,"children":153,"page":22},"Attribution","i-lucide-git-fork","/attribution","5.attribution",[154,158,162],{"title":155,"path":156,"stem":157},"How attribution works","/attribution/overview","5.attribution/1.overview",{"title":159,"path":160,"stem":161},"Data-driven model","/attribution/data-driven","5.attribution/2.data-driven",{"title":163,"path":164,"stem":165},"Attribution windows","/attribution/windows","5.attribution/3.windows",{"title":167,"icon":168,"path":169,"stem":170,"children":171,"page":22},"Trust Center","i-lucide-shield-check","/trust-center","6.trust-center",[172,176,180,184],{"title":173,"path":174,"stem":175},"Trust Center overview","/trust-center/overview","6.trust-center/1.overview",{"title":177,"path":178,"stem":179},"Investigations","/trust-center/investigations","6.trust-center/2.investigations",{"title":181,"path":182,"stem":183},"Audits","/trust-center/audits","6.trust-center/3.audits",{"title":185,"path":186,"stem":187},"Alerts","/trust-center/alerts","6.trust-center/4.alerts",{"id":189,"title":70,"body":190,"description":1987,"extension":1988,"links":1989,"meta":1990,"navigation":1105,"path":71,"seo":1991,"stem":72,"__hash__":1992},"docs/2.tracking/4.events.md",{"type":191,"value":192,"toc":1967},"minimark",[193,197,202,210,283,286,308,315,416,428,456,467,472,475,516,520,523,527,530,625,630,892,896,899,997,1002,1304,1308,1318,1322,1325,1329,1332,1409,1414,1422,1425,1428,1490,1494,1497,1602,1605,1609,1612,1700,1727,1734,1738,1742,1752,1834,1838,1841,1963],[194,195,196],"p",{},"TrustData tracks two types of events: page views and conversions.",[198,199,201],"h2",{"id":200},"page-views","Page views",[194,203,204,205,209],{},"The SDK tracks page views automatically when you initialize it with ",[206,207,208],"code",{},"sendPageView: true",":",[211,212,217],"pre",{"className":213,"code":214,"language":215,"meta":216,"style":216},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","trustdata.push(['init', 'YOUR_ATTRIBUTION_ID', { sendPageView: true }]);\n","javascript","",[206,218,219],{"__ignoreMap":216},[220,221,224,228,232,236,239,242,246,248,251,254,257,259,261,264,268,270,274,277,280],"span",{"class":222,"line":223},"line",1,[220,225,227],{"class":226},"sTEyZ","trustdata",[220,229,231],{"class":230},"sMK4o",".",[220,233,235],{"class":234},"s2Zo4","push",[220,237,238],{"class":226},"([",[220,240,241],{"class":230},"'",[220,243,245],{"class":244},"sfazB","init",[220,247,241],{"class":230},[220,249,250],{"class":230},",",[220,252,253],{"class":230}," '",[220,255,256],{"class":244},"YOUR_ATTRIBUTION_ID",[220,258,241],{"class":230},[220,260,250],{"class":230},[220,262,263],{"class":230}," {",[220,265,267],{"class":266},"swJcz"," sendPageView",[220,269,209],{"class":230},[220,271,273],{"class":272},"sfNiH"," true",[220,275,276],{"class":230}," }",[220,278,279],{"class":226},"])",[220,281,282],{"class":230},";\n",[194,284,285],{},"Each page view captures:",[287,288,289,293,296,299,302,305],"ul",{},[290,291,292],"li",{},"Current URL and referrer",[290,294,295],{},"UTM parameters",[290,297,298],{},"TrustData tracking parameters",[290,300,301],{},"Click IDs from ad platforms",[290,303,304],{},"Visitor and session identifiers",[290,306,307],{},"Consent and adblock status",[194,309,310,311,314],{},"Alongside ",[206,312,313],{},"page_view",", the SDK emits these events automatically (no code required):",[316,317,318,331],"table",{},[319,320,321],"thead",{},[322,323,324,328],"tr",{},[325,326,327],"th",{},"Event",[325,329,330],{},"When it fires",[332,333,334,345,355,369,387,404],"tbody",{},[322,335,336,342],{},[337,338,339],"td",{},[206,340,341],{},"page_leave",[337,343,344],{},"When the visitor navigates away or closes the tab",[322,346,347,352],{},[337,348,349],{},[206,350,351],{},"user_engagement",[337,353,354],{},"Once the page has been visible for the engagement timer (10 seconds by default)",[322,356,357,362],{},[337,358,359],{},[206,360,361],{},"identity_link",[337,363,364,365,368],{},"When ",[206,366,367],{},"linkIdentity()"," links a pre-consent fingerprint to the new visitor ID after a consent upgrade",[322,370,371,376],{},[337,372,373],{},[206,374,375],{},"consent_decision",[337,377,378,379,382,383,386],{},"When your code calls ",[206,380,381],{},"consent()"," with ",[206,384,385],{},"{ interaction: true }",", after a real choice in your consent banner",[322,388,389,394],{},[337,390,391],{},[206,392,393],{},"rage_click",[337,395,396,397,400,401],{},"When a visitor clicks three or more times within one second and 30 pixels. Carries a ",[206,398,399],{},"selector"," and a ",[206,402,403],{},"click_count",[322,405,406,411],{},[337,407,408],{},[206,409,410],{},"dead_click",[337,412,413,414],{},"When a click on a link or button changes neither the page content nor the URL within one second. Carries a ",[206,415,399],{},[194,417,418,419,421,422,424,425,427],{},"The SDK sends ",[206,420,393],{}," and ",[206,423,410],{}," only with analytics consent. The ",[206,426,399],{}," is built from tag names, ids and class names of the clicked element and up to three parents. The SDK never reads the element's text, value, link or label. It sends at most five of these events per page.",[194,429,430,421,432,434,435,438,439,443,444,447,448,451,452,455],{},[206,431,341],{},[206,433,351],{}," carry an ",[206,436,437],{},"engagement_time_msec"," value so you can measure real attention rather than raw pageviews. To change the engagement timer (10 to 60 seconds), open ",[440,441,442],"strong",{},"Settings"," → ",[440,445,446],{},"Attribution IDs",", select the attribution ID, and edit ",[440,449,450],{},"Engagement timer (seconds)"," in the ",[440,453,454],{},"Delivery"," tab.",[194,457,458,459,462,463,466],{},"If you install through ",[460,461,66],"a",{"href":67},", the template can also send ",[206,464,465],{},"funnel_step"," events for each step of a funnel.",[468,469,471],"h3",{"id":470},"single-page-applications-spas","Single page applications (SPAs)",[194,473,474],{},"For SPAs (React, Vue, etc.), track page views on route changes:",[211,476,478],{"className":213,"code":477,"language":215,"meta":216,"style":216},"// After route change\ntrustdata.push(['event', 'page_view']);\n",[206,479,480,486],{"__ignoreMap":216},[220,481,482],{"class":222,"line":223},[220,483,485],{"class":484},"sHwdD","// After route change\n",[220,487,489,491,493,495,497,499,502,504,506,508,510,512,514],{"class":222,"line":488},2,[220,490,227],{"class":226},[220,492,231],{"class":230},[220,494,235],{"class":234},[220,496,238],{"class":226},[220,498,241],{"class":230},[220,500,501],{"class":244},"event",[220,503,241],{"class":230},[220,505,250],{"class":230},[220,507,253],{"class":230},[220,509,313],{"class":244},[220,511,241],{"class":230},[220,513,279],{"class":226},[220,515,282],{"class":230},[198,517,519],{"id":518},"conversions","Conversions",[194,521,522],{},"Conversions are the events that matter for attribution. TrustData supports two primary conversion types:",[468,524,526],{"id":525},"purchase","Purchase",[194,528,529],{},"For e-commerce transactions:",[211,531,533],{"className":213,"code":532,"language":215,"meta":216,"style":216},"trustdata.push(['event', 'purchase', {\n  conversion_id: 'ORD-12345',  // Your order ID, used for deduplication and forwarding\n  value: 149.99,\n  currency: 'USD',\n}]);\n",[206,534,535,564,583,598,615],{"__ignoreMap":216},[220,536,537,539,541,543,545,547,549,551,553,555,557,559,561],{"class":222,"line":223},[220,538,227],{"class":226},[220,540,231],{"class":230},[220,542,235],{"class":234},[220,544,238],{"class":226},[220,546,241],{"class":230},[220,548,501],{"class":244},[220,550,241],{"class":230},[220,552,250],{"class":230},[220,554,253],{"class":230},[220,556,525],{"class":244},[220,558,241],{"class":230},[220,560,250],{"class":230},[220,562,563],{"class":230}," {\n",[220,565,566,569,571,573,576,578,580],{"class":222,"line":488},[220,567,568],{"class":266},"  conversion_id",[220,570,209],{"class":230},[220,572,253],{"class":230},[220,574,575],{"class":244},"ORD-12345",[220,577,241],{"class":230},[220,579,250],{"class":230},[220,581,582],{"class":484},"  // Your order ID, used for deduplication and forwarding\n",[220,584,586,589,591,595],{"class":222,"line":585},3,[220,587,588],{"class":266},"  value",[220,590,209],{"class":230},[220,592,594],{"class":593},"sbssI"," 149.99",[220,596,597],{"class":230},",\n",[220,599,601,604,606,608,611,613],{"class":222,"line":600},4,[220,602,603],{"class":266},"  currency",[220,605,209],{"class":230},[220,607,253],{"class":230},[220,609,610],{"class":244},"USD",[220,612,241],{"class":230},[220,614,597],{"class":230},[220,616,618,621,623],{"class":222,"line":617},5,[220,619,620],{"class":230},"}",[220,622,279],{"class":226},[220,624,282],{"class":230},[194,626,627],{},[440,628,629],{},"Full example with items:",[211,631,633],{"className":213,"code":632,"language":215,"meta":216,"style":216},"trustdata.push(['event', 'purchase', {\n  conversion_id: 'ORD-12345',\n  value: 149.99,\n  currency: 'USD',\n  tax: 12.50,\n  shipping: 5.99,\n  items: [\n    {\n      item_id: 'SKU123',\n      item_name: 'Premium Widget',\n      quantity: 2,\n      price: 49.99,\n    },\n    {\n      item_id: 'SKU456',\n      item_name: 'Widget Accessory',\n      quantity: 1,\n      price: 50.01,\n    },\n  ],\n}]);\n",[206,634,635,663,677,687,701,713,726,737,743,760,777,790,803,809,814,830,846,858,870,875,883],{"__ignoreMap":216},[220,636,637,639,641,643,645,647,649,651,653,655,657,659,661],{"class":222,"line":223},[220,638,227],{"class":226},[220,640,231],{"class":230},[220,642,235],{"class":234},[220,644,238],{"class":226},[220,646,241],{"class":230},[220,648,501],{"class":244},[220,650,241],{"class":230},[220,652,250],{"class":230},[220,654,253],{"class":230},[220,656,525],{"class":244},[220,658,241],{"class":230},[220,660,250],{"class":230},[220,662,563],{"class":230},[220,664,665,667,669,671,673,675],{"class":222,"line":488},[220,666,568],{"class":266},[220,668,209],{"class":230},[220,670,253],{"class":230},[220,672,575],{"class":244},[220,674,241],{"class":230},[220,676,597],{"class":230},[220,678,679,681,683,685],{"class":222,"line":585},[220,680,588],{"class":266},[220,682,209],{"class":230},[220,684,594],{"class":593},[220,686,597],{"class":230},[220,688,689,691,693,695,697,699],{"class":222,"line":600},[220,690,603],{"class":266},[220,692,209],{"class":230},[220,694,253],{"class":230},[220,696,610],{"class":244},[220,698,241],{"class":230},[220,700,597],{"class":230},[220,702,703,706,708,711],{"class":222,"line":617},[220,704,705],{"class":266},"  tax",[220,707,209],{"class":230},[220,709,710],{"class":593}," 12.50",[220,712,597],{"class":230},[220,714,716,719,721,724],{"class":222,"line":715},6,[220,717,718],{"class":266},"  shipping",[220,720,209],{"class":230},[220,722,723],{"class":593}," 5.99",[220,725,597],{"class":230},[220,727,729,732,734],{"class":222,"line":728},7,[220,730,731],{"class":266},"  items",[220,733,209],{"class":230},[220,735,736],{"class":226}," [\n",[220,738,740],{"class":222,"line":739},8,[220,741,742],{"class":230},"    {\n",[220,744,746,749,751,753,756,758],{"class":222,"line":745},9,[220,747,748],{"class":266},"      item_id",[220,750,209],{"class":230},[220,752,253],{"class":230},[220,754,755],{"class":244},"SKU123",[220,757,241],{"class":230},[220,759,597],{"class":230},[220,761,763,766,768,770,773,775],{"class":222,"line":762},10,[220,764,765],{"class":266},"      item_name",[220,767,209],{"class":230},[220,769,253],{"class":230},[220,771,772],{"class":244},"Premium Widget",[220,774,241],{"class":230},[220,776,597],{"class":230},[220,778,780,783,785,788],{"class":222,"line":779},11,[220,781,782],{"class":266},"      quantity",[220,784,209],{"class":230},[220,786,787],{"class":593}," 2",[220,789,597],{"class":230},[220,791,793,796,798,801],{"class":222,"line":792},12,[220,794,795],{"class":266},"      price",[220,797,209],{"class":230},[220,799,800],{"class":593}," 49.99",[220,802,597],{"class":230},[220,804,806],{"class":222,"line":805},13,[220,807,808],{"class":230},"    },\n",[220,810,812],{"class":222,"line":811},14,[220,813,742],{"class":230},[220,815,817,819,821,823,826,828],{"class":222,"line":816},15,[220,818,748],{"class":266},[220,820,209],{"class":230},[220,822,253],{"class":230},[220,824,825],{"class":244},"SKU456",[220,827,241],{"class":230},[220,829,597],{"class":230},[220,831,833,835,837,839,842,844],{"class":222,"line":832},16,[220,834,765],{"class":266},[220,836,209],{"class":230},[220,838,253],{"class":230},[220,840,841],{"class":244},"Widget Accessory",[220,843,241],{"class":230},[220,845,597],{"class":230},[220,847,849,851,853,856],{"class":222,"line":848},17,[220,850,782],{"class":266},[220,852,209],{"class":230},[220,854,855],{"class":593}," 1",[220,857,597],{"class":230},[220,859,861,863,865,868],{"class":222,"line":860},18,[220,862,795],{"class":266},[220,864,209],{"class":230},[220,866,867],{"class":593}," 50.01",[220,869,597],{"class":230},[220,871,873],{"class":222,"line":872},19,[220,874,808],{"class":230},[220,876,878,881],{"class":222,"line":877},20,[220,879,880],{"class":226},"  ]",[220,882,597],{"class":230},[220,884,886,888,890],{"class":222,"line":885},21,[220,887,620],{"class":230},[220,889,279],{"class":226},[220,891,282],{"class":230},[468,893,895],{"id":894},"generate-lead","Generate lead",[194,897,898],{},"For lead generation (demo requests, form submissions, signups):",[211,900,902],{"className":213,"code":901,"language":215,"meta":216,"style":216},"trustdata.push(['event', 'generate_lead', {\n  conversion_id: 'lead_abc789',\n  value: 50,\n  currency: 'USD',\n  lead_type: 'demo_request',\n}]);\n",[206,903,904,933,948,959,973,989],{"__ignoreMap":216},[220,905,906,908,910,912,914,916,918,920,922,924,927,929,931],{"class":222,"line":223},[220,907,227],{"class":226},[220,909,231],{"class":230},[220,911,235],{"class":234},[220,913,238],{"class":226},[220,915,241],{"class":230},[220,917,501],{"class":244},[220,919,241],{"class":230},[220,921,250],{"class":230},[220,923,253],{"class":230},[220,925,926],{"class":244},"generate_lead",[220,928,241],{"class":230},[220,930,250],{"class":230},[220,932,563],{"class":230},[220,934,935,937,939,941,944,946],{"class":222,"line":488},[220,936,568],{"class":266},[220,938,209],{"class":230},[220,940,253],{"class":230},[220,942,943],{"class":244},"lead_abc789",[220,945,241],{"class":230},[220,947,597],{"class":230},[220,949,950,952,954,957],{"class":222,"line":585},[220,951,588],{"class":266},[220,953,209],{"class":230},[220,955,956],{"class":593}," 50",[220,958,597],{"class":230},[220,960,961,963,965,967,969,971],{"class":222,"line":600},[220,962,603],{"class":266},[220,964,209],{"class":230},[220,966,253],{"class":230},[220,968,610],{"class":244},[220,970,241],{"class":230},[220,972,597],{"class":230},[220,974,975,978,980,982,985,987],{"class":222,"line":617},[220,976,977],{"class":266},"  lead_type",[220,979,209],{"class":230},[220,981,253],{"class":230},[220,983,984],{"class":244},"demo_request",[220,986,241],{"class":230},[220,988,597],{"class":230},[220,990,991,993,995],{"class":222,"line":715},[220,992,620],{"class":230},[220,994,279],{"class":226},[220,996,282],{"class":230},[194,998,999],{},[440,1000,1001],{},"Examples:",[211,1003,1005],{"className":213,"code":1004,"language":215,"meta":216,"style":216},"// Demo request\ntrustdata.push(['event', 'generate_lead', {\n  conversion_id: 'lead_abc789',\n  value: 100,\n  currency: 'USD',\n  lead_type: 'demo_request',\n}]);\n\n// Newsletter signup\ntrustdata.push(['event', 'generate_lead', {\n  conversion_id: 'sub_xyz123',\n  value: 10,\n  currency: 'USD',\n  lead_type: 'newsletter',\n}]);\n\n// Contact form\ntrustdata.push(['event', 'generate_lead', {\n  conversion_id: 'form_456',\n  value: 50,\n  currency: 'USD',\n  lead_type: 'contact_form',\n}]);\n",[206,1006,1007,1012,1040,1054,1065,1079,1093,1101,1107,1112,1140,1155,1166,1180,1195,1203,1207,1212,1240,1255,1265,1279,1295],{"__ignoreMap":216},[220,1008,1009],{"class":222,"line":223},[220,1010,1011],{"class":484},"// Demo request\n",[220,1013,1014,1016,1018,1020,1022,1024,1026,1028,1030,1032,1034,1036,1038],{"class":222,"line":488},[220,1015,227],{"class":226},[220,1017,231],{"class":230},[220,1019,235],{"class":234},[220,1021,238],{"class":226},[220,1023,241],{"class":230},[220,1025,501],{"class":244},[220,1027,241],{"class":230},[220,1029,250],{"class":230},[220,1031,253],{"class":230},[220,1033,926],{"class":244},[220,1035,241],{"class":230},[220,1037,250],{"class":230},[220,1039,563],{"class":230},[220,1041,1042,1044,1046,1048,1050,1052],{"class":222,"line":585},[220,1043,568],{"class":266},[220,1045,209],{"class":230},[220,1047,253],{"class":230},[220,1049,943],{"class":244},[220,1051,241],{"class":230},[220,1053,597],{"class":230},[220,1055,1056,1058,1060,1063],{"class":222,"line":600},[220,1057,588],{"class":266},[220,1059,209],{"class":230},[220,1061,1062],{"class":593}," 100",[220,1064,597],{"class":230},[220,1066,1067,1069,1071,1073,1075,1077],{"class":222,"line":617},[220,1068,603],{"class":266},[220,1070,209],{"class":230},[220,1072,253],{"class":230},[220,1074,610],{"class":244},[220,1076,241],{"class":230},[220,1078,597],{"class":230},[220,1080,1081,1083,1085,1087,1089,1091],{"class":222,"line":715},[220,1082,977],{"class":266},[220,1084,209],{"class":230},[220,1086,253],{"class":230},[220,1088,984],{"class":244},[220,1090,241],{"class":230},[220,1092,597],{"class":230},[220,1094,1095,1097,1099],{"class":222,"line":728},[220,1096,620],{"class":230},[220,1098,279],{"class":226},[220,1100,282],{"class":230},[220,1102,1103],{"class":222,"line":739},[220,1104,1106],{"emptyLinePlaceholder":1105},true,"\n",[220,1108,1109],{"class":222,"line":745},[220,1110,1111],{"class":484},"// Newsletter signup\n",[220,1113,1114,1116,1118,1120,1122,1124,1126,1128,1130,1132,1134,1136,1138],{"class":222,"line":762},[220,1115,227],{"class":226},[220,1117,231],{"class":230},[220,1119,235],{"class":234},[220,1121,238],{"class":226},[220,1123,241],{"class":230},[220,1125,501],{"class":244},[220,1127,241],{"class":230},[220,1129,250],{"class":230},[220,1131,253],{"class":230},[220,1133,926],{"class":244},[220,1135,241],{"class":230},[220,1137,250],{"class":230},[220,1139,563],{"class":230},[220,1141,1142,1144,1146,1148,1151,1153],{"class":222,"line":779},[220,1143,568],{"class":266},[220,1145,209],{"class":230},[220,1147,253],{"class":230},[220,1149,1150],{"class":244},"sub_xyz123",[220,1152,241],{"class":230},[220,1154,597],{"class":230},[220,1156,1157,1159,1161,1164],{"class":222,"line":792},[220,1158,588],{"class":266},[220,1160,209],{"class":230},[220,1162,1163],{"class":593}," 10",[220,1165,597],{"class":230},[220,1167,1168,1170,1172,1174,1176,1178],{"class":222,"line":805},[220,1169,603],{"class":266},[220,1171,209],{"class":230},[220,1173,253],{"class":230},[220,1175,610],{"class":244},[220,1177,241],{"class":230},[220,1179,597],{"class":230},[220,1181,1182,1184,1186,1188,1191,1193],{"class":222,"line":811},[220,1183,977],{"class":266},[220,1185,209],{"class":230},[220,1187,253],{"class":230},[220,1189,1190],{"class":244},"newsletter",[220,1192,241],{"class":230},[220,1194,597],{"class":230},[220,1196,1197,1199,1201],{"class":222,"line":816},[220,1198,620],{"class":230},[220,1200,279],{"class":226},[220,1202,282],{"class":230},[220,1204,1205],{"class":222,"line":832},[220,1206,1106],{"emptyLinePlaceholder":1105},[220,1208,1209],{"class":222,"line":848},[220,1210,1211],{"class":484},"// Contact form\n",[220,1213,1214,1216,1218,1220,1222,1224,1226,1228,1230,1232,1234,1236,1238],{"class":222,"line":860},[220,1215,227],{"class":226},[220,1217,231],{"class":230},[220,1219,235],{"class":234},[220,1221,238],{"class":226},[220,1223,241],{"class":230},[220,1225,501],{"class":244},[220,1227,241],{"class":230},[220,1229,250],{"class":230},[220,1231,253],{"class":230},[220,1233,926],{"class":244},[220,1235,241],{"class":230},[220,1237,250],{"class":230},[220,1239,563],{"class":230},[220,1241,1242,1244,1246,1248,1251,1253],{"class":222,"line":872},[220,1243,568],{"class":266},[220,1245,209],{"class":230},[220,1247,253],{"class":230},[220,1249,1250],{"class":244},"form_456",[220,1252,241],{"class":230},[220,1254,597],{"class":230},[220,1256,1257,1259,1261,1263],{"class":222,"line":877},[220,1258,588],{"class":266},[220,1260,209],{"class":230},[220,1262,956],{"class":593},[220,1264,597],{"class":230},[220,1266,1267,1269,1271,1273,1275,1277],{"class":222,"line":885},[220,1268,603],{"class":266},[220,1270,209],{"class":230},[220,1272,253],{"class":230},[220,1274,610],{"class":244},[220,1276,241],{"class":230},[220,1278,597],{"class":230},[220,1280,1282,1284,1286,1288,1291,1293],{"class":222,"line":1281},22,[220,1283,977],{"class":266},[220,1285,209],{"class":230},[220,1287,253],{"class":230},[220,1289,1290],{"class":244},"contact_form",[220,1292,241],{"class":230},[220,1294,597],{"class":230},[220,1296,1298,1300,1302],{"class":222,"line":1297},23,[220,1299,620],{"class":230},[220,1301,279],{"class":226},[220,1303,282],{"class":230},[198,1305,1307],{"id":1306},"customer-data","Customer data",[194,1309,1310,1311,1314,1315,231],{},"To send an email address or phone number for enhanced conversions, call ",[206,1312,1313],{},"trustdata.setUser()"," once, for example after a visitor logs in. The SDK hashes the values in the browser and adds them to later events, but only when the visitor has advertising consent. See ",[460,1316,62],{"href":1317},"/tracking/javascript#trustdatasetuserdata",[198,1319,1321],{"id":1320},"url-parameters","URL parameters",[194,1323,1324],{},"The SDK sends the page URL. The event server reads the URL parameters from it and uses them for attribution.",[468,1326,1328],{"id":1327},"trustdata-parameters","TrustData parameters",[194,1330,1331],{},"Add these to your ad URLs for campaign tracking:",[316,1333,1334,1347],{},[319,1335,1336],{},[322,1337,1338,1341,1344],{},[325,1339,1340],{},"Parameter",[325,1342,1343],{},"Purpose",[325,1345,1346],{},"Example",[332,1348,1349,1364,1379,1394],{},[322,1350,1351,1356,1359],{},[337,1352,1353],{},[206,1354,1355],{},"trdt_cpid",[337,1357,1358],{},"Campaign ID",[337,1360,1361],{},[206,1362,1363],{},"?trdt_cpid={campaignid}",[322,1365,1366,1371,1374],{},[337,1367,1368],{},[206,1369,1370],{},"trdt_agid",[337,1372,1373],{},"Ad Group ID",[337,1375,1376],{},[206,1377,1378],{},"&trdt_agid={adgroupid}",[322,1380,1381,1386,1389],{},[337,1382,1383],{},[206,1384,1385],{},"trdt_kwid",[337,1387,1388],{},"Keyword ID",[337,1390,1391],{},[206,1392,1393],{},"&trdt_kwid={targetid}",[322,1395,1396,1401,1404],{},[337,1397,1398],{},[206,1399,1400],{},"trdt_ctid",[337,1402,1403],{},"Creative/Ad ID",[337,1405,1406],{},[206,1407,1408],{},"&trdt_ctid={creative}",[194,1410,1411],{},[440,1412,1413],{},"Example URL:",[211,1415,1420],{"className":1416,"code":1418,"language":1419},[1417],"language-text","https://example.com/landing?trdt_cpid=123&trdt_agid=456&trdt_ctid=789\n","text",[206,1421,1418],{"__ignoreMap":216},[468,1423,295],{"id":1424},"utm-parameters",[194,1426,1427],{},"TrustData captures standard UTM parameters automatically:",[316,1429,1430,1438],{},[319,1431,1432],{},[322,1433,1434,1436],{},[325,1435,1340],{},[325,1437,1343],{},[332,1439,1440,1450,1460,1470,1480],{},[322,1441,1442,1447],{},[337,1443,1444],{},[206,1445,1446],{},"utm_source",[337,1448,1449],{},"Traffic source (google, facebook, newsletter)",[322,1451,1452,1457],{},[337,1453,1454],{},[206,1455,1456],{},"utm_medium",[337,1458,1459],{},"Marketing medium (cpc, email, social)",[322,1461,1462,1467],{},[337,1463,1464],{},[206,1465,1466],{},"utm_campaign",[337,1468,1469],{},"Campaign name",[322,1471,1472,1477],{},[337,1473,1474],{},[206,1475,1476],{},"utm_term",[337,1478,1479],{},"Paid search keyword",[322,1481,1482,1487],{},[337,1483,1484],{},[206,1485,1486],{},"utm_content",[337,1488,1489],{},"Ad variation or link identifier",[468,1491,1493],{"id":1492},"ad-platform-click-ids","Ad platform click IDs",[194,1495,1496],{},"Ad platforms add these automatically:",[316,1498,1499,1508],{},[319,1500,1501],{},[322,1502,1503,1505],{},[325,1504,1340],{},[325,1506,1507],{},"Platform",[332,1509,1510,1526,1536,1545,1554,1564,1573,1583,1593],{},[322,1511,1512,1524],{},[337,1513,1514,1517,1518,1517,1521],{},[206,1515,1516],{},"gclid",", ",[206,1519,1520],{},"gbraid",[206,1522,1523],{},"wbraid",[337,1525,103],{},[322,1527,1528,1533],{},[337,1529,1530],{},[206,1531,1532],{},"dclid",[337,1534,1535],{},"Google Display & Video 360 / Campaign Manager 360",[322,1537,1538,1543],{},[337,1539,1540],{},[206,1541,1542],{},"fbclid",[337,1544,107],{},[322,1546,1547,1552],{},[337,1548,1549],{},[206,1550,1551],{},"ttclid",[337,1553,111],{},[322,1555,1556,1561],{},[337,1557,1558],{},[206,1559,1560],{},"msclkid",[337,1562,1563],{},"Microsoft Ads",[322,1565,1566,1571],{},[337,1567,1568],{},[206,1569,1570],{},"li_fat_id",[337,1572,115],{},[322,1574,1575,1580],{},[337,1576,1577],{},[206,1578,1579],{},"twclid",[337,1581,1582],{},"X (Twitter) Ads",[322,1584,1585,1590],{},[337,1586,1587],{},[206,1588,1589],{},"rdt_cid",[337,1591,1592],{},"Reddit Ads",[322,1594,1595,1600],{},[337,1596,1597],{},[206,1598,1599],{},"epik",[337,1601,119],{},[194,1603,1604],{},"If the visitor consents, TrustData captures these click IDs and uses them to match conversions to the original ad click.",[198,1606,1608],{"id":1607},"automatically-captured-data","Automatically captured data",[194,1610,1611],{},"Every event includes:",[316,1613,1614,1624],{},[319,1615,1616],{},[322,1617,1618,1621],{},[325,1619,1620],{},"Field",[325,1622,1623],{},"Description",[332,1625,1626,1636,1646,1656,1666,1676,1686],{},[322,1627,1628,1633],{},[337,1629,1630],{},[206,1631,1632],{},"event_time",[337,1634,1635],{},"Event time (Unix seconds)",[322,1637,1638,1643],{},[337,1639,1640],{},[206,1641,1642],{},"page_location",[337,1644,1645],{},"Current page URL",[322,1647,1648,1653],{},[337,1649,1650],{},[206,1651,1652],{},"page_referrer",[337,1654,1655],{},"Referring URL",[322,1657,1658,1663],{},[337,1659,1660],{},[206,1661,1662],{},"visitor_id",[337,1664,1665],{},"Persistent visitor identifier (omitted when analytics consent is not granted)",[322,1667,1668,1673],{},[337,1669,1670],{},[206,1671,1672],{},"raw_user_agent",[337,1674,1675],{},"User agent string, parsed server-side into browser, OS, and device",[322,1677,1678,1683],{},[337,1679,1680],{},[206,1681,1682],{},"consent",[337,1684,1685],{},"Consent state (4 levels)",[322,1687,1688,1697],{},[337,1689,1690,1693,1694],{},[206,1691,1692],{},"adblock_detected"," / ",[206,1695,1696],{},"adblock_platforms_blocked",[337,1698,1699],{},"Whether an ad blocker is active, and which platforms it blocks as a comma-separated list",[1701,1702,1704,1707,1708,421,1710,1713,1714,1717,1718,1517,1720,1722,1723,1726],"callout",{"icon":1703},"i-lucide-shield",[440,1705,1706],{},"Consent-aware capture."," Without analytics consent, the SDK does not store a visitor ID. The server strips personal data: it drops ",[206,1709,1662],{},[206,1711,1712],{},"user_id",", removes ",[206,1715,1716],{},"user_data",", and masks click IDs (",[206,1719,1516],{},[206,1721,1542],{},", and similar) from the URL. The SDK uses a short-lived ",[206,1724,1725],{},"fp_"," fingerprint instead, so anonymous traffic still counts.",[1701,1728,1730,1731,1733],{"icon":1729},"i-lucide-book-open","For the full payload reference, see the ",[460,1732,74],{"href":75},". It lists all fields and objects, and what to prioritize for maximum accuracy.",[198,1735,1737],{"id":1736},"best-practices","Best practices",[468,1739,1741],{"id":1740},"_1-always-include-conversion_id","1. Always include conversion_id",[194,1743,1744,1745,1748,1749,1751],{},"Include a unique ",[206,1746,1747],{},"conversion_id"," on every conversion event to prevent duplicate attribution. The collector stores an event that has no ",[206,1750,1747],{},", but it does not forward that event to ad platforms:",[211,1753,1755],{"className":213,"code":1754,"language":215,"meta":216,"style":216},"trustdata.push(['event', 'purchase', {\n  conversion_id: 'ORD-12345',  // your order ID, lead ID, form ID, etc.\n  value: 149.99,\n  currency: 'USD',\n}]);\n",[206,1756,1757,1785,1802,1812,1826],{"__ignoreMap":216},[220,1758,1759,1761,1763,1765,1767,1769,1771,1773,1775,1777,1779,1781,1783],{"class":222,"line":223},[220,1760,227],{"class":226},[220,1762,231],{"class":230},[220,1764,235],{"class":234},[220,1766,238],{"class":226},[220,1768,241],{"class":230},[220,1770,501],{"class":244},[220,1772,241],{"class":230},[220,1774,250],{"class":230},[220,1776,253],{"class":230},[220,1778,525],{"class":244},[220,1780,241],{"class":230},[220,1782,250],{"class":230},[220,1784,563],{"class":230},[220,1786,1787,1789,1791,1793,1795,1797,1799],{"class":222,"line":488},[220,1788,568],{"class":266},[220,1790,209],{"class":230},[220,1792,253],{"class":230},[220,1794,575],{"class":244},[220,1796,241],{"class":230},[220,1798,250],{"class":230},[220,1800,1801],{"class":484},"  // your order ID, lead ID, form ID, etc.\n",[220,1803,1804,1806,1808,1810],{"class":222,"line":585},[220,1805,588],{"class":266},[220,1807,209],{"class":230},[220,1809,594],{"class":593},[220,1811,597],{"class":230},[220,1813,1814,1816,1818,1820,1822,1824],{"class":222,"line":600},[220,1815,603],{"class":266},[220,1817,209],{"class":230},[220,1819,253],{"class":230},[220,1821,610],{"class":244},[220,1823,241],{"class":230},[220,1825,597],{"class":230},[220,1827,1828,1830,1832],{"class":222,"line":617},[220,1829,620],{"class":230},[220,1831,279],{"class":226},[220,1833,282],{"class":230},[468,1835,1837],{"id":1836},"_2-always-include-value","2. Always include value",[194,1839,1840],{},"Attribution depends on conversion value. Always include it:",[211,1842,1844],{"className":213,"code":1843,"language":215,"meta":216,"style":216},"// Good\ntrustdata.push(['event', 'generate_lead', {\n  conversion_id: 'lead_abc',\n  value: 50,\n  currency: 'USD',\n}]);\n\n// Bad - no value or dedup ID\ntrustdata.push(['event', 'generate_lead']);\n",[206,1845,1846,1851,1879,1894,1904,1918,1926,1930,1935],{"__ignoreMap":216},[220,1847,1848],{"class":222,"line":223},[220,1849,1850],{"class":484},"// Good\n",[220,1852,1853,1855,1857,1859,1861,1863,1865,1867,1869,1871,1873,1875,1877],{"class":222,"line":488},[220,1854,227],{"class":226},[220,1856,231],{"class":230},[220,1858,235],{"class":234},[220,1860,238],{"class":226},[220,1862,241],{"class":230},[220,1864,501],{"class":244},[220,1866,241],{"class":230},[220,1868,250],{"class":230},[220,1870,253],{"class":230},[220,1872,926],{"class":244},[220,1874,241],{"class":230},[220,1876,250],{"class":230},[220,1878,563],{"class":230},[220,1880,1881,1883,1885,1887,1890,1892],{"class":222,"line":585},[220,1882,568],{"class":266},[220,1884,209],{"class":230},[220,1886,253],{"class":230},[220,1888,1889],{"class":244},"lead_abc",[220,1891,241],{"class":230},[220,1893,597],{"class":230},[220,1895,1896,1898,1900,1902],{"class":222,"line":600},[220,1897,588],{"class":266},[220,1899,209],{"class":230},[220,1901,956],{"class":593},[220,1903,597],{"class":230},[220,1905,1906,1908,1910,1912,1914,1916],{"class":222,"line":617},[220,1907,603],{"class":266},[220,1909,209],{"class":230},[220,1911,253],{"class":230},[220,1913,610],{"class":244},[220,1915,241],{"class":230},[220,1917,597],{"class":230},[220,1919,1920,1922,1924],{"class":222,"line":715},[220,1921,620],{"class":230},[220,1923,279],{"class":226},[220,1925,282],{"class":230},[220,1927,1928],{"class":222,"line":728},[220,1929,1106],{"emptyLinePlaceholder":1105},[220,1931,1932],{"class":222,"line":739},[220,1933,1934],{"class":484},"// Bad - no value or dedup ID\n",[220,1936,1937,1939,1941,1943,1945,1947,1949,1951,1953,1955,1957,1959,1961],{"class":222,"line":745},[220,1938,227],{"class":226},[220,1940,231],{"class":230},[220,1942,235],{"class":234},[220,1944,238],{"class":226},[220,1946,241],{"class":230},[220,1948,501],{"class":244},[220,1950,241],{"class":230},[220,1952,250],{"class":230},[220,1954,253],{"class":230},[220,1956,926],{"class":244},[220,1958,241],{"class":230},[220,1960,279],{"class":226},[220,1962,282],{"class":230},[1964,1965,1966],"style",{},"html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}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 .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":216,"searchDepth":488,"depth":488,"links":1968},[1969,1972,1976,1977,1982,1983],{"id":200,"depth":488,"text":201,"children":1970},[1971],{"id":470,"depth":585,"text":471},{"id":518,"depth":488,"text":519,"children":1973},[1974,1975],{"id":525,"depth":585,"text":526},{"id":894,"depth":585,"text":895},{"id":1306,"depth":488,"text":1307},{"id":1320,"depth":488,"text":1321,"children":1978},[1979,1980,1981],{"id":1327,"depth":585,"text":1328},{"id":1424,"depth":585,"text":295},{"id":1492,"depth":585,"text":1493},{"id":1607,"depth":488,"text":1608},{"id":1736,"depth":488,"text":1737,"children":1984},[1985,1986],{"id":1740,"depth":585,"text":1741},{"id":1836,"depth":585,"text":1837},"Track page views and conversions with TrustData.","md",null,{},{"title":70,"description":1987},"-QZgoFF_XtgF5bjx88n_UJPSWFbGqcNk3SV8ePLPvRc",[1994,1996],{"title":66,"path":67,"stem":68,"description":1995,"children":-1},"Install TrustData through the TrustData Web Tag template for Google Tag Manager.",{"title":74,"path":75,"stem":76,"description":1997,"children":-1},"Canonical reference for event types and payload fields across the JavaScript SDK and webhook API.",1794578011605]