[{"data":1,"prerenderedAt":914},["ShallowReactive",2],{"navigation_docs":3,"-connectors-shopify":188,"-connectors-shopify-surround":909},[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":99,"body":190,"description":902,"extension":903,"links":904,"meta":905,"navigation":906,"path":100,"seo":907,"stem":101,"__hash__":908},"docs/3.connectors/12.shopify.md",{"type":191,"value":192,"toc":882},"minimark",[193,197,202,205,228,231,235,238,250,254,332,335,340,343,413,417,420,467,470,632,638,641,645,654,658,661,725,740,758,762,765,835,838,842,845,849,853,870,874],[194,195,196],"p",{},"Connect a Shopify store to track shopper events with the TrustData pixel and to receive order events from Shopify. TrustData matches each order to the visit that led to it, and syncs store data on a schedule.",[198,199,201],"h2",{"id":200},"what-the-connection-does","What the connection does",[194,203,204],{},"One connection does three things:",[206,207,208,216,222],"ul",{},[209,210,211,215],"li",{},[212,213,214],"strong",{},"Installs the TrustData pixel"," in your store. The pixel captures shopper events in the browser.",[209,217,218,221],{},[212,219,220],{},"Receives order and customer events"," from Shopify, so purchases, refunds and cancellations reach TrustData from the server.",[209,223,224,227],{},[212,225,226],{},"Syncs store data",": orders, customers, products and discounts.",[194,229,230],{},"The pixel and the order events share a checkout token. TrustData uses it to match an order to the visit that placed it.",[198,232,234],{"id":233},"before-you-start","Before you start",[194,236,237],{},"You need:",[206,239,240,243],{},[209,241,242],{},"A Shopify store where you can install apps",[209,244,245,246,249],{},"A TrustData property with an ",[212,247,248],{},"Attribution ID",". The pixel and the order events send their data to this Attribution ID",[198,251,253],{"id":252},"connect-your-store","Connect your store",[255,256,257,267,277,292,297,300,306,312,318,328],"ol",{},[209,258,259,260,263,264],{},"Go to ",[212,261,262],{},"Settings"," → ",[212,265,266],{},"Data Sources",[209,268,269,270,273,274,276],{},"Click ",[212,271,272],{},"Connect"," on the ",[212,275,99],{}," card",[209,278,279,280,283,284,288,289],{},"Under ",[212,281,282],{},"Shop name",", enter your store name, for example ",[285,286,287],"code",{},"mystore"," or ",[285,290,291],{},"mystore.myshopify.com",[209,293,269,294],{},[212,295,296],{},"Connect Shopify store",[209,298,299],{},"Log in to Shopify if Shopify asks you to",[209,301,302,303],{},"Review the permissions TrustData requests, then click ",[212,304,305],{},"Install app",[209,307,308,309],{},"Back in TrustData, enter a ",[212,310,311],{},"Data Source Name",[209,313,314,315,317],{},"Select the ",[212,316,248],{}," that receives events from this store",[209,319,320,321,324,325],{},"Optional: under ",[212,322,323],{},"Advanced options",", turn on ",[212,326,327],{},"Debug Mode",[209,329,269,330],{},[212,331,272],{},[194,333,334],{},"TrustData then creates the pixel in your store, or updates it if one already exists. It registers the webhooks when you install the app. If the pixel setup fails, TrustData still connects the store and shows a warning that the pixel needs manual setup in your Shopify admin.",[336,337,339],"h3",{"id":338},"permissions-requested","Permissions requested",[194,341,342],{},"TrustData requests these Shopify permissions:",[344,345,346,359],"table",{},[347,348,349],"thead",{},[350,351,352,356],"tr",{},[353,354,355],"th",{},"Permission",[353,357,358],{},"Used for",[360,361,362,373,383,393,403],"tbody",{},[350,363,364,370],{},[365,366,367],"td",{},[285,368,369],{},"read_orders",[365,371,372],{},"Reading orders",[350,374,375,380],{},[365,376,377],{},[285,378,379],{},"read_customers",[365,381,382],{},"Reading customers",[350,384,385,390],{},[365,386,387],{},[285,388,389],{},"read_products",[365,391,392],{},"Reading products",[350,394,395,400],{},[365,396,397],{},[285,398,399],{},"write_pixels",[365,401,402],{},"Creating the TrustData pixel in your store",[350,404,405,410],{},[365,406,407],{},[285,408,409],{},"read_customer_events",[365,411,412],{},"Letting the pixel read shopper events",[198,414,416],{"id":415},"pixel","Pixel",[194,418,419],{},"The pixel runs in Shopify's customer events sandbox. TrustData sets three options when it creates the pixel:",[344,421,422,432],{},[347,423,424],{},[350,425,426,429],{},[353,427,428],{},"Option",[353,430,431],{},"Value",[360,433,434,444,451],{},[350,435,436,439],{},[365,437,438],{},"Server URL",[365,440,441],{},[285,442,443],{},"https://t.trustdata.tech",[350,445,446,448],{},[365,447,248],{},[365,449,450],{},"The Attribution ID you selected",[350,452,453,455],{},[365,454,327],{},[365,456,457,460,461,463,464],{},[285,458,459],{},"true"," if you turned on ",[212,462,327],{},", otherwise ",[285,465,466],{},"false",[194,468,469],{},"The pixel sends these Shopify events to TrustData:",[344,471,472,482],{},[347,473,474],{},[350,475,476,479],{},[353,477,478],{},"Shopify event",[353,480,481],{},"TrustData event",[360,483,484,496,508,520,532,544,556,568,580,592,608,620],{},[350,485,486,491],{},[365,487,488],{},[285,489,490],{},"page_viewed",[365,492,493],{},[285,494,495],{},"page_view",[350,497,498,503],{},[365,499,500],{},[285,501,502],{},"product_viewed",[365,504,505],{},[285,506,507],{},"view_item",[350,509,510,515],{},[365,511,512],{},[285,513,514],{},"collection_viewed",[365,516,517],{},[285,518,519],{},"view_item_list",[350,521,522,527],{},[365,523,524],{},[285,525,526],{},"search_submitted",[365,528,529],{},[285,530,531],{},"search",[350,533,534,539],{},[365,535,536],{},[285,537,538],{},"product_added_to_cart",[365,540,541],{},[285,542,543],{},"add_to_cart",[350,545,546,551],{},[365,547,548],{},[285,549,550],{},"product_removed_from_cart",[365,552,553],{},[285,554,555],{},"remove_from_cart",[350,557,558,563],{},[365,559,560],{},[285,561,562],{},"cart_viewed",[365,564,565],{},[285,566,567],{},"view_cart",[350,569,570,575],{},[365,571,572],{},[285,573,574],{},"checkout_started",[365,576,577],{},[285,578,579],{},"begin_checkout",[350,581,582,587],{},[365,583,584],{},[285,585,586],{},"checkout_contact_info_submitted",[365,588,589],{},[285,590,591],{},"add_contact_info",[350,593,594,603],{},[365,595,596,599,600],{},[285,597,598],{},"checkout_address_info_submitted"," and ",[285,601,602],{},"checkout_shipping_info_submitted",[365,604,605],{},[285,606,607],{},"add_shipping_info",[350,609,610,615],{},[365,611,612],{},[285,613,614],{},"payment_info_submitted",[365,616,617],{},[285,618,619],{},"add_payment_info",[350,621,622,627],{},[365,623,624],{},[285,625,626],{},"checkout_completed",[365,628,629],{},[285,630,631],{},"purchase",[194,633,634,635,637],{},"The ",[285,636,631],{}," event carries the transaction ID, tax, shipping, the checkout token and whether it is the customer's first order.",[194,639,640],{},"The pixel reads each visitor's Shopify consent choices for analytics, marketing, preferences and sale of data. It sends them with every event. Without analytics consent, the pixel does not send a visitor ID.",[336,642,644],{"id":643},"debug-mode","Debug mode",[194,646,647,649,650,653],{},[212,648,327],{}," writes pixel messages that start with ",[285,651,652],{},"[TrustData]"," to the browser console. Turn it on while you test, then turn it off.",[198,655,657],{"id":656},"order-and-customer-events","Order and customer events",[194,659,660],{},"Shopify sends these webhooks to TrustData:",[344,662,663,673],{},[347,664,665],{},[350,666,667,670],{},[353,668,669],{},"Shopify topic",[353,671,672],{},"What TrustData records",[360,674,675,688,705,715],{},[350,676,677,682],{},[365,678,679],{},[285,680,681],{},"orders/paid",[365,683,684,685,687],{},"A ",[285,686,631],{},". If the order already has refunds, a refund",[350,689,690,695],{},[365,691,692],{},[285,693,694],{},"orders/updated",[365,696,697,698,288,701,704],{},"An order update, a refund if the order has refunds or its status is ",[285,699,700],{},"refunded",[285,702,703],{},"partially_refunded",", or a cancellation if the order has a cancellation time",[350,706,707,712],{},[365,708,709],{},[285,710,711],{},"orders/cancelled",[365,713,714],{},"A cancellation, with a negative value",[350,716,717,722],{},[365,718,719],{},[285,720,721],{},"customers/create",[365,723,724],{},"A new customer",[194,726,727,728,288,730,732,733,736,737,739],{},"TrustData ignores an ",[285,729,694],{},[285,731,711],{}," event for an order whose payment status is ",[285,734,735],{},"pending",", because that order is not a sale yet. Cash on delivery orders count when Shopify sends ",[285,738,681],{},".",[194,741,742,743,746,747,750,751,599,754,757],{},"TrustData also receives ",[285,744,745],{},"app/uninstalled"," and Shopify's data privacy requests (",[285,748,749],{},"customers/data_request",", ",[285,752,753],{},"customers/redact",[285,755,756],{},"shop/redact",").",[198,759,761],{"id":760},"synced-data","Synced data",[194,763,764],{},"TrustData syncs these Shopify data sets every 3 hours:",[344,766,767,777],{},[347,768,769],{},[350,770,771,774],{},[353,772,773],{},"Data set",[353,775,776],{},"Description",[360,778,779,787,795,803,811,819,827],{},[350,780,781,784],{},[365,782,783],{},"Orders",[365,785,786],{},"Orders with line items",[350,788,789,792],{},[365,790,791],{},"Customers",[365,793,794],{},"Customer details used to identify returning shoppers",[350,796,797,800],{},[365,798,799],{},"Transactions",[365,801,802],{},"Payment transactions",[350,804,805,808],{},[365,806,807],{},"Products",[365,809,810],{},"Catalog with variant prices and availability",[350,812,813,816],{},[365,814,815],{},"Inventory levels",[365,817,818],{},"Stock per location",[350,820,821,824],{},[365,822,823],{},"Price rules",[365,825,826],{},"Promotion setup",[350,828,829,832],{},[365,830,831],{},"Discount codes",[365,833,834],{},"Promotion codes",[194,836,837],{},"The first sync reads the last 90 days. Later syncs re-read the last 30 days, so late updates reach TrustData.",[198,839,841],{"id":840},"uninstall-the-app","Uninstall the app",[194,843,844],{},"When you uninstall the TrustData app from Shopify, Shopify notifies TrustData. TrustData turns off the Shopify data source and adds an entry to your change history, titled \"TrustData app uninstalled from Shopify\". Attribution analysis excludes the surrounding period.",[198,846,848],{"id":847},"troubleshooting","Troubleshooting",[336,850,852],{"id":851},"no-pixel-events-appear","No pixel events appear",[255,854,855,858,867],{},[209,856,857],{},"In your Shopify admin, check that the TrustData pixel exists and is active",[209,859,860,861,863,864,866],{},"Turn on ",[212,862,327],{}," and look for ",[285,865,652],{}," messages in the browser console",[209,868,869],{},"Check that you selected the Attribution ID of the right property",[336,871,873],{"id":872},"orders-are-not-matched-to-visits","Orders are not matched to visits",[206,875,876,879],{},[209,877,878],{},"Check that the pixel is active. The pixel sends the checkout token that TrustData uses to match each order",[209,880,881],{},"Check that the visitor gave analytics consent. Without it, the pixel sends no visitor ID",{"title":883,"searchDepth":884,"depth":884,"links":885},"",2,[886,887,888,892,895,896,897,898],{"id":200,"depth":884,"text":201},{"id":233,"depth":884,"text":234},{"id":252,"depth":884,"text":253,"children":889},[890],{"id":338,"depth":891,"text":339},3,{"id":415,"depth":884,"text":416,"children":893},[894],{"id":643,"depth":891,"text":644},{"id":656,"depth":884,"text":657},{"id":760,"depth":884,"text":761},{"id":840,"depth":884,"text":841},{"id":847,"depth":884,"text":848,"children":899},[900,901],{"id":851,"depth":891,"text":852},{"id":872,"depth":891,"text":873},"Connect your Shopify store to install the TrustData pixel, receive order events and sync store data.","md",null,{},true,{"title":99,"description":902},"DMzL4Wth2frNmXBALLoQ6hbsR2e1dMIsBdDpEL8koTY",[910,912],{"title":95,"path":96,"stem":97,"description":911,"children":-1},"Tell TrustData when you publish a page, so it can measure what the change did.",{"title":103,"path":104,"stem":105,"description":913,"children":-1},"Connect Google Ads and add tracking parameters.",1794578013521]