[{"data":1,"prerenderedAt":848},["ShallowReactive",2],{"navigation_docs":3,"-tracking-overview":188,"-tracking-overview-surround":843},[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":30,"body":190,"description":836,"extension":837,"links":838,"meta":839,"navigation":840,"path":59,"seo":841,"stem":60,"__hash__":842},"docs/2.tracking/1.overview.md",{"type":191,"value":192,"toc":818},"minimark",[193,197,202,205,257,261,264,293,300,314,318,342,349,368,372,377,380,453,457,460,513,516,520,523,534,537,611,614,618,622,637,641,655,659,678,695,699,769,775,779,784,788,792,796,799,814],[194,195,196],"p",{},"The TrustData Tracking SDK is a lightweight JavaScript library (about 7KB gzipped) that measures all of your traffic, not only the visitors who consent.",[198,199,201],"h2",{"id":200},"what-makes-it-different","What makes it different",[194,203,204],{},"Traditional analytics only shows you consented traffic. TrustData shows you:",[206,207,208,221],"table",{},[209,210,211],"thead",{},[212,213,214,218],"tr",{},[215,216,217],"th",{},"Traditional analytics",[215,219,220],{},"TrustData",[222,223,224,233,241,249],"tbody",{},[212,225,226,230],{},[227,228,229],"td",{},"~70% of visitors (consented only)",[227,231,232],{},"100% of visitors",[212,234,235,238],{},[227,236,237],{},"No consent rate data",[227,239,240],{},"Exact consent acceptance rate",[212,242,243,246],{},[227,244,245],{},"Blocked by ad blockers",[227,247,248],{},"Adblock detection and rate",[212,250,251,254],{},[227,252,253],{},"Third-party cookies (often blocked)",[227,255,256],{},"First-party tracking",[198,258,260],{"id":259},"why-first-party-tracking","Why first-party tracking?",[194,262,263],{},"Third-party cookies are increasingly blocked:",[265,266,267,275,281,287],"ul",{},[268,269,270,274],"li",{},[271,272,273],"strong",{},"Safari",": Blocks all third-party cookies",[268,276,277,280],{},[271,278,279],{},"Firefox",": Blocks known trackers",[268,282,283,286],{},[271,284,285],{},"Chrome",": Removing third-party cookies",[268,288,289,292],{},[271,290,291],{},"Ad blockers",": Block most analytics scripts",[194,294,295,296,299],{},"TrustData uses ",[271,297,298],{},"first-party tracking",":",[265,301,302,305,308,311],{},[268,303,304],{},"TrustData collects data on your domain",[268,306,307],{},"No third-party cookies required",[268,309,310],{},"Works with all browsers",[268,312,313],{},"You own the data",[198,315,317],{"id":316},"architecture","Architecture",[319,320,325],"pre",{"className":321,"code":322,"language":323,"meta":324,"style":324},"language-mermaid shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","flowchart LR\n  W[\"Your property\u003Cbr/>TrustData SDK (t.js)\"] -->|HTTPS POST| S[\"TrustData Event Server\"]\n","mermaid","",[326,327,328,336],"code",{"__ignoreMap":324},[329,330,333],"span",{"class":331,"line":332},"line",1,[329,334,335],{},"flowchart LR\n",[329,337,339],{"class":331,"line":338},2,[329,340,341],{},"  W[\"Your property\u003Cbr/>TrustData SDK (t.js)\"] -->|HTTPS POST| S[\"TrustData Event Server\"]\n",[194,343,344,345,348],{},"On your property, the ",[271,346,347],{},"SDK"," captures pageviews and events. It sends the page URL, manages visitor identity (cookie + local storage), and records consent and adblock status. Events called before the script loads are queued, then each event is sent to the event server as it happens.",[194,350,351,352,355,356,359,360,363,364,367],{},"The ",[271,353,354],{},"event server"," validates and enriches each event, reads the URL parameters from ",[326,357,358],{},"page_location"," (",[326,361,362],{},"trdt_cpid/agid/kwid/ctid",", ",[326,365,366],{},"utm_*"," and click IDs), detects geo (from IP) and device, filters bots, and stores the result in your analytics database.",[198,369,371],{"id":370},"what-the-sdk-captures","What the SDK captures",[373,374,376],"h3",{"id":375},"automatic-data-capture","Automatic data capture",[194,378,379],{},"The SDK automatically captures:",[206,381,382,392],{},[209,383,384],{},[212,385,386,389],{},[215,387,388],{},"Category",[215,390,391],{},"Data",[222,393,394,404,413,423,433,443],{},[212,395,396,401],{},[227,397,398],{},[271,399,400],{},"Identity",[227,402,403],{},"Visitor ID, session ID, user ID (if authenticated)",[212,405,406,410],{},[227,407,408],{},[271,409,149],{},[227,411,412],{},"UTM parameters, click IDs (gclid, gbraid, wbraid, fbclid, ttclid, msclkid, li_fat_id, and more)",[212,414,415,420],{},[227,416,417],{},[271,418,419],{},"Session",[227,421,422],{},"Session number, first visit flag, entrance page",[212,424,425,430],{},[227,426,427],{},[271,428,429],{},"Page",[227,431,432],{},"URL, referrer, title",[212,434,435,440],{},[227,436,437],{},[271,438,439],{},"Device",[227,441,442],{},"Browser, OS, screen size, device type",[212,444,445,450],{},[227,446,447],{},[271,448,449],{},"Privacy",[227,451,452],{},"Consent state (4 levels), adblock detection",[373,454,456],{"id":455},"consent-tracking","Consent tracking",[194,458,459],{},"TrustData tracks a 4-level consent model:",[206,461,462,472],{},[209,463,464],{},[212,465,466,469],{},[215,467,468],{},"Level",[215,470,471],{},"Purpose",[222,473,474,483,493,503],{},[212,475,476,480],{},[227,477,478],{},[271,479,135],{},[227,481,482],{},"Basic analytics and performance measurement",[212,484,485,490],{},[227,486,487],{},[271,488,489],{},"Advertising",[227,491,492],{},"Ad targeting and conversion tracking",[212,494,495,500],{},[227,496,497],{},[271,498,499],{},"Preferences",[227,501,502],{},"Personalization and saved settings",[212,504,505,510],{},[227,506,507],{},[271,508,509],{},"Sale of Data",[227,511,512],{},"Third-party data sharing (CCPA)",[194,514,515],{},"You can see your consent acceptance rate for each level in the dashboard.",[373,517,519],{"id":518},"adblock-detection","Adblock detection",[194,521,522],{},"The SDK detects ad blockers and reports:",[265,524,525,528,531],{},[268,526,527],{},"Whether the visitor has an ad blocker active",[268,529,530],{},"Which platforms are being blocked",[268,532,533],{},"Your overall adblock rate",[194,535,536],{},"Detection probes the endpoints that the major marketing platforms use, so you can see which ones are blocked:",[206,538,539,549],{},[209,540,541],{},[212,542,543,546],{},[215,544,545],{},"Platform",[215,547,548],{},"What gets blocked",[222,550,551,561,571,581,591,601],{},[212,552,553,558],{},[227,554,555],{},[326,556,557],{},"google_analytics",[227,559,560],{},"Google Analytics collection",[212,562,563,568],{},[227,564,565],{},[326,566,567],{},"google_tag_manager",[227,569,570],{},"Google Tag Manager container",[212,572,573,578],{},[227,574,575],{},[326,576,577],{},"google_ads",[227,579,580],{},"Google Ads / AdSense",[212,582,583,588],{},[227,584,585],{},[326,586,587],{},"facebook",[227,589,590],{},"Meta Pixel",[212,592,593,598],{},[227,594,595],{},[326,596,597],{},"tiktok",[227,599,600],{},"TikTok Pixel",[212,602,603,608],{},[227,604,605],{},[326,606,607],{},"microsoft",[227,609,610],{},"Microsoft (Bing) Ads",[194,612,613],{},"This shows how much of your traffic is invisible to standard analytics.",[198,615,617],{"id":616},"key-features","Key features",[373,619,621],{"id":620},"lightweight","Lightweight",[265,623,624,631,634],{},[268,625,626,627,630],{},"About ",[271,628,629],{},"7KB"," gzipped",[268,632,633],{},"Async loading (non-blocking)",[268,635,636],{},"No external dependencies",[373,638,640],{"id":639},"privacy-focused","Privacy-focused",[265,642,643,646,649,652],{},[268,644,645],{},"No device reads in the browser without analytics consent",[268,647,648],{},"Consent-aware storage: no client-side storage without consent, first-party cookie with consent",[268,650,651],{},"Integrates with consent management platforms",[268,653,654],{},"IP truncation, PII gating, and salt rotation are enforced by the platform and can't be turned off",[373,656,658],{"id":657},"configurable","Configurable",[194,660,661,662,665,666,669,670,673,674,677],{},"These settings live in the dashboard, not in the SDK code. Open ",[271,663,664],{},"Settings"," → ",[271,667,668],{},"Attribution IDs",", select an attribution ID, and use the ",[271,671,672],{},"Delivery"," and ",[271,675,676],{},"Filtering"," tabs:",[265,679,680,683,686,689,692],{},[268,681,682],{},"Session timeout (default 30 minutes)",[268,684,685],{},"Attribution lookback window (default 30 days)",[268,687,688],{},"Cross-domain tracking",[268,690,691],{},"Internal traffic filtering",[268,693,694],{},"Bot filtering (built-in + custom patterns)",[198,696,698],{"id":697},"sdk-vs-server-side","SDK vs server-side",[206,700,701,713],{},[209,702,703],{},[212,704,705,708,710],{},[215,706,707],{},"Feature",[215,709,62],{},[215,711,712],{},"Server-side API",[222,714,715,726,737,747,758],{},[212,716,717,720,723],{},[227,718,719],{},"Pageviews",[227,721,722],{},"Automatic",[227,724,725],{},"Manual",[212,727,728,731,734],{},[227,729,730],{},"Client data",[227,732,733],{},"Full (device, referrer)",[227,735,736],{},"Limited",[212,738,739,741,744],{},[227,740,291],{},[227,742,743],{},"May be blocked",[227,745,746],{},"Always works",[212,748,749,752,755],{},[227,750,751],{},"Conversions",[227,753,754],{},"Both",[227,756,757],{},"Recommended",[212,759,760,763,766],{},[227,761,762],{},"Consent/Adblock rates",[227,764,765],{},"Yes",[227,767,768],{},"No",[194,770,771,774],{},[271,772,773],{},"Recommendation",": Use the JavaScript SDK for pageviews, consent tracking, and client-side events. Use the server-side API for backend conversions (purchases, signups) so they are always captured.",[198,776,778],{"id":777},"next-steps","Next steps",[780,781,783],"u-card",{"icon":782,"title":62,"to":63},"i-lucide-code","Installation and configuration guide.",[780,785,787],{"icon":786,"title":66,"to":67},"i-lucide-tag","Install through the TrustData Web Tag template.",[780,789,791],{"icon":790,"title":78,"to":79},"i-lucide-globe","Serve tracking from your own domain.",[780,793,795],{"icon":794,"title":70,"to":71},"i-lucide-list","Standard events and custom event tracking.",[797,798],"hr",{},[194,800,801,808,809],{},[802,803,807],"a",{"href":804,"rel":805},"https://trustdata.tech/product/tracking",[806],"nofollow","Tracking product page"," on trustdata.tech · ",[802,810,813],{"href":811,"rel":812},"https://trustdata.tech/waitlist",[806],"Free trial",[815,816,817],"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);}",{"title":324,"searchDepth":338,"depth":338,"links":819},[820,821,822,823,829,834,835],{"id":200,"depth":338,"text":201},{"id":259,"depth":338,"text":260},{"id":316,"depth":338,"text":317},{"id":370,"depth":338,"text":371,"children":824},[825,827,828],{"id":375,"depth":826,"text":376},3,{"id":455,"depth":826,"text":456},{"id":518,"depth":826,"text":519},{"id":616,"depth":338,"text":617,"children":830},[831,832,833],{"id":620,"depth":826,"text":621},{"id":639,"depth":826,"text":640},{"id":657,"depth":826,"text":658},{"id":697,"depth":338,"text":698},{"id":777,"depth":338,"text":778},"First-party event tracking with full visibility, including consent rates and adblock detection.","md",null,{},true,{"title":30,"description":836},"xSdVuGBPpiTE1Uv9S1K5kSFTFq3XICiDeAM9kWOfO3s",[844,846],{"title":49,"path":50,"stem":51,"description":845,"children":-1},"Every trustdata command, its flags, and whether it reads or writes.",{"title":62,"path":63,"stem":64,"description":847,"children":-1},"Install and configure the TrustData JavaScript SDK.",1794578008820]