[{"data":1,"prerenderedAt":1245},["ShallowReactive",2],{"docs-navigation":3,"docs-\u002Fdocs\u002Fanalytics\u002Fsearch-analytics":319,"docs-\u002Fdocs\u002Fanalytics\u002Fsearch-analytics-surround":1242},[4],{"title":5,"path":6,"stem":7,"children":8,"page":34},"Docs","\u002Fdocs","docs",[9,35,60,78,120,186,229,240,264,289],{"title":10,"description":11,"icon":12,"path":13,"stem":14,"children":15,"page":34},"Getting started","What Zaproo Search is, a quickstart, and wiring search into a storefront.","i-lucide-rocket","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started",[16,22,28],{"title":17,"path":18,"stem":19,"description":20,"icon":21},"Introduction","\u002Fdocs\u002Fgetting-started\u002Fintroduction","docs\u002F1.getting-started\u002F1.introduction","What Zaproo Search is, the five things you work with, and how a product catalog becomes a search box on your shop.","i-lucide-book-open-text",{"title":23,"path":24,"stem":25,"description":26,"icon":27},"Quickstart","\u002Fdocs\u002Fgetting-started\u002Fquickstart","docs\u002F1.getting-started\u002F2.quickstart","From a new account to a first search request in six steps, with curl or from your AI agent.","i-lucide-zap",{"title":29,"path":30,"stem":31,"description":32,"icon":33},"Integrate a storefront","\u002Fdocs\u002Fgetting-started\u002Fstorefront","docs\u002F1.getting-started\u002F3.storefront","Build a search results page with facets and an autocomplete box on top of the search and suggest routes.","i-lucide-store",false,{"title":36,"description":37,"icon":38,"path":39,"stem":40,"children":41,"page":34},"Account and team","Sign-in, sessions, organizations, members, roles and projects.","i-lucide-users","\u002Fdocs\u002Faccount","docs\u002F2.account",[42,48,54],{"title":43,"path":44,"stem":45,"description":46,"icon":47},"Account and sign-in","\u002Fdocs\u002Faccount\u002Fsign-in","docs\u002F2.account\u002F1.sign-in","Create an account, verify your email, stay signed in, manage signed-in devices and change or reset your password.","i-lucide-log-in",{"title":49,"path":50,"stem":51,"description":52,"icon":53},"Organizations, members and roles","\u002Fdocs\u002Faccount\u002Forganizations","docs\u002F2.account\u002F2.organizations","What an organization holds, how to add members, and what owners, admins and members may do.","i-lucide-building-2",{"title":55,"path":56,"stem":57,"description":58,"icon":59},"Projects","\u002Fdocs\u002Faccount\u002Fprojects","docs\u002F2.account\u002F3.projects","Group the indices and API keys of one shop or one environment, and keep staging apart from production.","i-lucide-folder-kanban",{"title":61,"description":62,"icon":63,"path":64,"stem":65,"children":66,"page":34},"API keys and security","Secret and public keys, scopes, allowed origins, rate limits and errors.","i-lucide-key-round","\u002Fdocs\u002Fkeys","docs\u002F3.keys",[67,72],{"title":68,"path":69,"stem":70,"description":71,"icon":63},"API keys","\u002Fdocs\u002Fkeys\u002Fapi-keys","docs\u002F3.keys\u002F1.api-keys","Secret and public keys, full and read access, index scope, allowed origins, expiry, and how to revoke a key.",{"title":73,"path":74,"stem":75,"description":76,"icon":77},"Rate limits and errors","\u002Fdocs\u002Fkeys\u002Frate-limits","docs\u002F3.keys\u002F2.rate-limits","How many requests each route accepts per minute, what a 429 looks like, the error format and every error code with its HTTP status.","i-lucide-gauge",{"title":79,"description":80,"icon":81,"path":82,"stem":83,"children":84,"page":34},"Indexing","Indices, languages, mappings, documents, tasks, full catalog sync and reindexing.","i-lucide-database","\u002Fdocs\u002Findexing","docs\u002F4.indexing",[85,90,96,102,108,114],{"title":86,"path":87,"stem":88,"description":89,"icon":81},"Indices and languages","\u002Fdocs\u002Findexing\u002Findices","docs\u002F4.indexing\u002F1.indices","Create an index, pick its language, read its status, and change the language later with a reindex.",{"title":91,"path":92,"stem":93,"description":94,"icon":95},"Mapping and fields","\u002Fdocs\u002Findexing\u002Fmapping","docs\u002F4.indexing\u002F2.mapping","Field types, the five flags that decide what a field is used for, text analysis options, unmapped fields, and which changes need a reindex.","i-lucide-table-properties",{"title":97,"path":98,"stem":99,"description":100,"icon":101},"Documents and tasks","\u002Fdocs\u002Findexing\u002Fdocuments","docs\u002F4.indexing\u002F3.documents","Upload and delete documents in batches, follow each write as a task, retry safely with Idempotency-Key, and browse what the index holds.","i-lucide-file-json",{"title":103,"path":104,"stem":105,"description":106,"icon":107},"Full catalog sync","\u002Fdocs\u002Findexing\u002Ffull-sync","docs\u002F4.indexing\u002F4.full-sync","Replace the whole catalog with a replace session, so products missing from your export disappear from search, without downtime.","i-lucide-refresh-cw",{"title":109,"path":110,"stem":111,"description":112,"icon":113},"Reindex and versions","\u002Fdocs\u002Findexing\u002Fversions","docs\u002F4.indexing\u002F5.versions","Rebuild an index with its saved mapping and swap it in without downtime, follow or cancel the rebuild, and read activeVersion and buildingVersion.","i-lucide-git-compare-arrows",{"title":115,"path":116,"stem":117,"description":118,"icon":119},"Data source","\u002Fdocs\u002Findexing\u002Fdata-source","docs\u002F4.indexing\u002F6.data-source","Let Zaproo download your product feed on a schedule, map it to documents, write only what changed and delete what left the feed.","i-lucide-rss",{"title":121,"description":122,"icon":123,"path":124,"stem":125,"children":126,"page":34},"Integrations","Connect your shop. Magento 2, product feeds and the API work today; more platforms are coming.","i-lucide-plug-zap","\u002Fdocs\u002Fintegrations","docs\u002F4.integrations",[127,133,139,144,150,156,161,166,171,176,181],{"title":128,"path":129,"stem":130,"description":131,"icon":132},"Integrations overview","\u002Fdocs\u002Fintegrations\u002Foverview","docs\u002F4.integrations\u002F01.overview","The ways to get your catalog into Zaproo Search, which one to pick, and how an integration shows up in the cabinet.","i-lucide-layout-grid",{"title":134,"path":135,"stem":136,"description":137,"icon":138},"Magento 2","\u002Fdocs\u002Fintegrations\u002Fmagento","docs\u002F4.integrations\u002F02.magento","Install the Zaproo Search module for Magento 2, connect each store view to its own index, and keep the catalog in sync.","i-lucide-shopping-cart",{"title":140,"path":141,"stem":142,"description":143,"icon":119},"Product feed","\u002Fdocs\u002Fintegrations\u002Fproduct-feed","docs\u002F4.integrations\u002F03.product-feed","Connect any shop that can publish its catalog as a feed. Zaproo downloads it on a schedule and writes only what changed.",{"title":145,"path":146,"stem":147,"description":148,"icon":149},"REST API and MCP","\u002Fdocs\u002Fintegrations\u002Frest-api-and-mcp","docs\u002F4.integrations\u002F04.rest-api-and-mcp","Send documents from your own code with the REST API, or let an AI agent manage the index over MCP.","i-lucide-code",{"title":151,"path":152,"stem":153,"description":154,"icon":155},"Shopify","\u002Fdocs\u002Fintegrations\u002Fshopify","docs\u002F4.integrations\u002F05.shopify","A Zaproo Search integration for Shopify is coming soon. Until then, connect the shop through a product feed or the REST API.","i-lucide-shopping-bag",{"title":157,"path":158,"stem":159,"description":160,"icon":155},"WooCommerce","\u002Fdocs\u002Fintegrations\u002Fwoocommerce","docs\u002F4.integrations\u002F06.woocommerce","A Zaproo Search integration for WooCommerce is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":162,"path":163,"stem":164,"description":165,"icon":155},"Shopware","\u002Fdocs\u002Fintegrations\u002Fshopware","docs\u002F4.integrations\u002F07.shopware","A Zaproo Search integration for Shopware is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":167,"path":168,"stem":169,"description":170,"icon":155},"BigCommerce","\u002Fdocs\u002Fintegrations\u002Fbigcommerce","docs\u002F4.integrations\u002F08.bigcommerce","A Zaproo Search integration for BigCommerce is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":172,"path":173,"stem":174,"description":175,"icon":155},"PrestaShop","\u002Fdocs\u002Fintegrations\u002Fprestashop","docs\u002F4.integrations\u002F09.prestashop","A Zaproo Search integration for PrestaShop is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":177,"path":178,"stem":179,"description":180,"icon":155},"commercetools","\u002Fdocs\u002Fintegrations\u002Fcommercetools","docs\u002F4.integrations\u002F10.commercetools","A Zaproo Search integration for commercetools is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":182,"path":183,"stem":184,"description":185,"icon":155},"Salesforce Commerce Cloud","\u002Fdocs\u002Fintegrations\u002Fsalesforce-commerce-cloud","docs\u002F4.integrations\u002F11.salesforce-commerce-cloud","A Zaproo Search integration for Salesforce Commerce Cloud is coming soon. Until then, connect the shop through a product feed or the REST API.",{"title":187,"description":188,"icon":189,"path":190,"stem":191,"children":192,"page":34},"Search and relevance","The search API, search profiles, facets, synonyms and ranking rules.","i-lucide-search","\u002Fdocs\u002Fsearch","docs\u002F5.search",[193,199,205,211,217,223],{"title":194,"path":195,"stem":196,"description":197,"icon":198},"Search API","\u002Fdocs\u002Fsearch\u002Fsearch-api","docs\u002F5.search\u002F1.search-api","The search request and response, every filter form, sorting, paging, highlighting and the inline profile for previews.","i-lucide-search-code",{"title":200,"path":201,"stem":202,"description":203,"icon":204},"Search profiles","\u002Fdocs\u002Fsearch\u002Fprofiles","docs\u002F5.search\u002F2.profiles","Every setting of a search profile, what it does to results, and the mistakes to avoid.","i-lucide-sliders-horizontal",{"title":206,"path":207,"stem":208,"description":209,"icon":210},"Facets","\u002Fdocs\u002Fsearch\u002Ffacets","docs\u002F5.search\u002F3.facets","The filter panels next to the results, the four facet types, index facets and profile facets, and how a shopper's clicks change the counts.","i-lucide-list-filter",{"title":212,"path":213,"stem":214,"description":215,"icon":216},"Synonyms","\u002Fdocs\u002Fsearch\u002Fsynonyms","docs\u002F5.search\u002F4.synonyms","Let different words find the same products, with equivalent and one-way rules, bulk import and export in the Solr format, and no reindex.","i-lucide-arrow-left-right",{"title":218,"path":219,"stem":220,"description":221,"icon":222},"Ranking rules","\u002Fdocs\u002Fsearch\u002Frules","docs\u002F5.search\u002F5.rules","Change the results for chosen searches. Put products first, hide them, lift or lower a brand, narrow the results or weigh fields differently, on a schedule and per profile.","i-lucide-list-ordered",{"title":224,"path":225,"stem":226,"description":227,"icon":228},"Language groups","\u002Fdocs\u002Fsearch\u002Flanguage-groups","docs\u002F5.search\u002F6.language-groups","Let each store of a multilingual shop find its products by the other stores' text, so an English search on the Estonian store still finds the Estonian product.","i-lucide-languages",{"title":230,"description":231,"icon":232,"path":233,"stem":234,"children":235,"page":34},"Autocomplete","Query suggestions as the shopper types.","i-lucide-text-cursor-input","\u002Fdocs\u002Fautocomplete","docs\u002F6.autocomplete",[236],{"title":230,"path":237,"stem":238,"description":239,"icon":232},"\u002Fdocs\u002Fautocomplete\u002Fsuggestions","docs\u002F6.autocomplete\u002F1.suggestions","Query suggestions as the shopper types, built every hour from your own searches, field values and custom entries.",{"title":241,"description":242,"icon":243,"path":244,"stem":245,"children":246,"page":34},"Analytics","Searches, zero-result queries and latency.","i-lucide-chart-line","\u002Fdocs\u002Fanalytics","docs\u002F7.analytics",[247,252,258],{"title":248,"path":249,"stem":250,"description":251,"icon":243},"Search analytics","\u002Fdocs\u002Fanalytics\u002Fsearch-analytics","docs\u002F7.analytics\u002F1.search-analytics","What the analytics page counts, which traffic it leaves out, how the headline numbers are defined, how comparisons and retention work, and how to get the weekly digest.",{"title":253,"path":254,"stem":255,"description":256,"icon":257},"Reports","\u002Fdocs\u002Fanalytics\u002Freports","docs\u002F7.analytics\u002F2.reports","Every analytics report with the definition of each column, the opportunities list and its fix buttons, the per-query view with before and after, and the CSV download.","i-lucide-table",{"title":259,"path":260,"stem":261,"description":262,"icon":263},"Event tracking","\u002Fdocs\u002Fanalytics\u002Fevent-tracking","docs\u002F7.analytics\u002F3.event-tracking","Send clicks, add-to-cart, purchases and suggestion clicks from your storefront, tie them to the search with searchId, and a copy-paste script that does it.","i-lucide-mouse-pointer-click",{"title":265,"description":266,"icon":267,"path":268,"stem":269,"children":270,"page":34},"AI agents (MCP)","Connect Claude Code or any MCP client and manage search from an agent.","i-lucide-bot","\u002Fdocs\u002Fmcp","docs\u002F8.mcp",[271,277,283],{"title":272,"path":273,"stem":274,"description":275,"icon":276},"MCP setup","\u002Fdocs\u002Fmcp\u002Fsetup","docs\u002F8.mcp\u002F1.setup","Connect Claude Code or any MCP client to Zaproo Search and manage indices, documents, profiles, synonyms and ranking rules from your agent.","i-lucide-plug",{"title":278,"path":279,"stem":280,"description":281,"icon":282},"MCP tools","\u002Fdocs\u002Fmcp\u002Ftools","docs\u002F8.mcp\u002F2.tools","Every tool the Zaproo Search MCP server offers, what an agent can do with each group, and prompts to start from.","i-lucide-wrench",{"title":284,"path":285,"stem":286,"description":287,"icon":288},"Resources and prompts","\u002Fdocs\u002Fmcp\u002Fresources","docs\u002F8.mcp\u002F3.resources","The index resources an MCP client can read, the tune_relevance prompt, and the errors the MCP server answers.","i-lucide-library",{"title":290,"description":291,"icon":292,"path":293,"stem":294,"children":295,"page":34},"Reference","Every REST route, every limit, plans and billing, and status.","i-lucide-book-open","\u002Fdocs\u002Freference","docs\u002F9.reference",[296,302,307,313],{"title":297,"path":298,"stem":299,"description":300,"icon":301},"REST API","\u002Fdocs\u002Freference\u002Frest-api","docs\u002F9.reference\u002F1.rest-api","The routes of the Zaproo Search REST API, grouped by area, with who may call it.","i-lucide-list-tree",{"title":303,"path":304,"stem":305,"description":306,"icon":77},"Limits","\u002Fdocs\u002Freference\u002Flimits","docs\u002F9.reference\u002F2.limits","Every size limit, cap and default of the Zaproo Search API in one place, with what happens when you reach it.",{"title":308,"path":309,"stem":310,"description":311,"icon":312},"Plans and billing","\u002Fdocs\u002Freference\u002Fbilling","docs\u002F9.reference\u002F3.billing","The plans, how usage is measured, what happens near a quota, and how plan changes and invoices work.","i-lucide-credit-card",{"title":314,"path":315,"stem":316,"description":317,"icon":318},"Status","\u002Fdocs\u002Freference\u002Fstatus","docs\u002F9.reference\u002F4.status","The status page and the status route, what each service covers and how to use them in your own monitoring.","i-lucide-activity",{"id":320,"title":248,"body":321,"description":251,"extension":1237,"meta":1238,"navigation":1239,"path":249,"seo":1240,"stem":250,"__hash__":1241},"docs\u002Fdocs\u002F7.analytics\u002F1.search-analytics.md",{"type":322,"value":323,"toc":1213},"minimark",[324,329,338,346,353,380,383,387,405,415,430,436,440,454,550,556,559,586,591,604,610,680,683,693,728,732,739,743,757,761,770,774,784,788,798,802,816,820,826,830,839,843,863,867,872,934,1036,1069,1072,1075,1079,1090,1093,1104,1107,1111,1143,1147,1183,1187,1209],[325,326,328],"h2",{"id":327},"what-analytics-shows","What analytics shows",[330,331,332,333,337],"p",{},"Every search your storefront makes with a saved search profile is logged: the query, how many products it found, how long it took, which filters it used and which ranking rules fired. When your store also sends ",[334,335,336],"a",{"href":260},"events",", each click, add-to-cart and purchase is tied to the search that led to it. Analytics adds all of that up per index.",[330,339,340],{},[341,342],"img",{"alt":343,"src":344,"title":345},"The Analytics page: the opportunities list on top, then the headline numbers with their change against the previous period, the timeline and the report tabs","\u002Fdocs\u002Fscreenshots\u002Fanalytics.png","Analytics for the last 30 days",[330,347,348,349,352],{},"In the cabinet, open an index and then ",[350,351,241],"strong",{},". The page has, from top to bottom:",[354,355,356,364,367,373],"ul",{},[357,358,359,363],"li",{},[334,360,362],{"href":361},"\u002Fdocs\u002Fanalytics\u002Freports#opportunities","Opportunities",": the queries that cost you the most, each with a fix button.",[357,365,366],{},"The headline numbers below, each with its change against the comparison window.",[357,368,369,372],{},[350,370,371],{},"Searches over time",", with the zero-result share of each bar in red.",[357,374,375,376,379],{},"A tab per ",[334,377,378],{"href":254},"report",", each with a CSV download.",[330,381,382],{},"Click any query in a table to open it on its own: searches per day, the synonyms and rules that touched it, and the numbers before and after the latest fix.",[325,384,386],{"id":385},"window-comparison-and-filters","Window, comparison and filters",[330,388,389,390,393,394,393,397,400,401,404],{},"Pick ",[350,391,392],{},"Last 7 days",", ",[350,395,396],{},"Last 30 days",[350,398,399],{},"Last 90 days"," or ",[350,402,403],{},"Last year"," at the top. The window always ends now.",[330,406,407,410,411,414],{},[350,408,409],{},"Compare with"," sets the comparison window: the period right before (the default), the same period a year earlier, or none. Every headline number then shows its change, and the Queries report gets a ",[350,412,413],{},"Before"," column.",[330,416,417,420,421,424,425,429],{},[350,418,419],{},"Device"," and ",[350,422,423],{},"Country"," narrow every number on the page to one device class (desktop, mobile or tablet, read from the user agent) or one country. The country comes from the ",[426,427,428],"code",{},"cf-ipcountry"," header your CDN sets, so it is empty when there is no CDN in front of the API.",[330,431,432,435],{},[350,433,434],{},"Include internal traffic"," adds the searches and events that are normally left out. See the next section.",[325,437,439],{"id":438},"what-counts-as-real-traffic","What counts as real traffic",[330,441,442,443,446,447,449,450,453],{},"Every logged search and event carries a source. Reports count only ",[426,444,445],{},"live"," unless you turn on ",[350,448,434],{}," (",[426,451,452],{},"includeInternal=true"," on the API).",[455,456,457,470],"table",{},[458,459,460],"thead",{},[461,462,463,467],"tr",{},[464,465,466],"th",{},"Source",[464,468,469],{},"What it is",[471,472,473,483,493,507,526,540],"tbody",{},[461,474,475,480],{},[476,477,478],"td",{},[426,479,445],{},[476,481,482],{},"A shopper on your store. The only source the reports count by default.",[461,484,485,490],{},[476,486,487],{},[426,488,489],{},"cabinet",[476,491,492],{},"A signed-in user: the playground, the profile and rule editors.",[461,494,495,500],{},[476,496,497],{},[426,498,499],{},"mcp",[476,501,502,503,506],{},"An AI agent calling the ",[426,504,505],{},"search"," tool.",[461,508,509,514],{},[476,510,511],{},[426,512,513],{},"opted_out",[476,515,516,517,520,521,525],{},"A search sent with ",[426,518,519],{},"analytics: false",". See ",[334,522,524],{"href":523},"#opting-a-search-out","Opting a search out",".",[461,527,528,533],{},[476,529,530],{},[426,531,532],{},"excluded_ip",[476,534,535,536,525],{},"A request from one of the project's ",[334,537,539],{"href":538},"#excluded-ip-addresses","excluded IP addresses",[461,541,542,547],{},[476,543,544],{},[426,545,546],{},"bot",[476,548,549],{},"A request whose user agent is a known crawler.",[330,551,552,553,555],{},"The source is decided once, when the search or event is logged, in that order: an opted-out search stays ",[426,554,513],{}," even when it comes from an excluded address.",[330,557,558],{},"Two more rules keep the counts honest:",[354,560,561,571],{},[357,562,563,566,567,570],{},[350,564,565],{},"Search-as-you-type is collapsed."," When one session sends \"sam\", \"sams\" and \"samsung\" within a few seconds, only the last one counts. The earlier keystrokes are marked ",[426,568,569],{},"superseded"," and left out of every report.",[357,572,573,576,577,580,581,585],{},[350,574,575],{},"Retypes are remembered."," When a search finds nothing and the same session searches for something else within 60 seconds, the second search records the first as ",[426,578,579],{},"refinedFrom",". That feeds the ",[334,582,584],{"href":583},"\u002Fdocs\u002Fanalytics\u002Freports#refinements","Refinements"," report.",[587,588,590],"h3",{"id":589},"excluded-ip-addresses","Excluded IP addresses",[330,592,593,594,597,598,600,601,603],{},"Open ",[350,595,596],{},"Project → Settings"," and fill in ",[350,599,590],{},": one IPv4 or IPv6 address or CIDR range per line, up to 50. Searches and events from these addresses are logged as ",[426,602,532],{}," and left out of the reports. Use it for your office, your test scripts and your staging server. The change reaches every index of the project with the next search. Only owners and admins can edit the list.",[605,606],"api-route",{"auth":607,"method":608,"path":609},"Admin or owner of the organization","PUT","\u002Fv1\u002Fprojects\u002F:projectId",[611,612,617],"pre",{"className":613,"code":614,"language":615,"meta":616,"style":616},"language-bash shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","curl -X PUT https:\u002F\u002Fapi.zaproo-search.com\u002Fv1\u002Fprojects\u002F$PROJECT_ID \\\n  -H \"Authorization: Bearer $ACCESS_TOKEN\" -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"analyticsExcludedIps\": [\"203.0.113.7\", \"198.51.100.0\u002F24\"]}'\n","bash","",[426,618,619,647,671],{"__ignoreMap":616},[620,621,624,628,632,636,639,643],"span",{"class":622,"line":623},"line",1,[620,625,627],{"class":626},"szw1H","curl",[620,629,631],{"class":630},"ssYy9"," -X",[620,633,635],{"class":634},"semJd"," PUT",[620,637,638],{"class":634}," https:\u002F\u002Fapi.zaproo-search.com\u002Fv1\u002Fprojects\u002F",[620,640,642],{"class":641},"s7iLA","$PROJECT_ID ",[620,644,646],{"class":645},"sklAV","\\\n",[620,648,650,653,656,659,662,665,668],{"class":622,"line":649},2,[620,651,652],{"class":630},"  -H",[620,654,655],{"class":634}," \"Authorization: Bearer ",[620,657,658],{"class":641},"$ACCESS_TOKEN",[620,660,661],{"class":634},"\"",[620,663,664],{"class":630}," -H",[620,666,667],{"class":634}," \"Content-Type: application\u002Fjson\"",[620,669,670],{"class":645}," \\\n",[620,672,674,677],{"class":622,"line":673},3,[620,675,676],{"class":630},"  -d",[620,678,679],{"class":634}," '{\"analyticsExcludedIps\": [\"203.0.113.7\", \"198.51.100.0\u002F24\"]}'\n",[587,681,524],{"id":682},"opting-a-search-out",[330,684,685,686,689,690,692],{},"Send ",[426,687,688],{},"\"analytics\": false"," in the search request body and the search is served as usual but logged as ",[426,691,513],{},". Use it for synthetic traffic you control: uptime checks, load tests, a demo page. The home page demo on this site sends it. Events have no such flag; an event is tied to its search, and takes the source of the request that sends it.",[611,694,698],{"className":695,"code":696,"language":697,"meta":616,"style":616},"language-json shiki shiki-themes github-light-high-contrast github-light-high-contrast github-dark-high-contrast","{ \"q\": \"oled tv\", \"analytics\": false }\n","json",[426,699,700],{"__ignoreMap":616},[620,701,702,705,709,712,715,717,720,722,725],{"class":622,"line":623},[620,703,704],{"class":641},"{ ",[620,706,708],{"class":707},"sb7M8","\"q\"",[620,710,711],{"class":641},": ",[620,713,714],{"class":634},"\"oled tv\"",[620,716,393],{"class":641},[620,718,719],{"class":707},"\"analytics\"",[620,721,711],{"class":641},[620,723,724],{"class":630},"false",[620,726,727],{"class":641}," }\n",[325,729,731],{"id":730},"headline-numbers","Headline numbers",[330,733,734,735,738],{},"Rates are shares of distinct searches, from 0 to 1; the cabinet shows them as percentages. Every number comes with its value over the comparison window, ",[426,736,737],{},"null"," when there is no comparison or nothing to divide by.",[587,740,742],{"id":741},"searches-and-sessions","Searches and sessions",[330,744,745,748,749,752,753,756],{},[426,746,747],{},"searches",": logged searches in the window, the empty query included (a shopper browsing a category without typing). Keystroke searches that a later one superseded are not counted. ",[426,750,751],{},"sessions",": distinct sessions that made at least one search, from the ",[426,754,755],{},"sessionId"," your storefront sends. Without session ids it stays at zero.",[587,758,760],{"id":759},"zero-result-rate","Zero-result rate",[330,762,763,766,767,769],{},[426,764,765],{},"zeroResultRate",": the share of searches that found nothing. It is the first number to watch after a change to a profile, synonyms or rules. A popular zero-result query matters more than twenty that were searched once, so work through the ",[334,768,362],{"href":361}," list rather than the rate.",[587,771,773],{"id":772},"click-through-rate","Click-through rate",[330,775,776,779,780,783],{},[426,777,778],{},"ctr",": searches with at least one click, divided by searches. It needs ",[334,781,782],{"href":260},"click events",". A low rate with a low zero-result rate means the results are there but not convincing: check the ranking, the titles and the images.",[587,785,787],{"id":786},"add-to-cart-and-conversion-rate","Add-to-cart and conversion rate",[330,789,790,793,794,797],{},[426,791,792],{},"addToCartRate",": searches followed by an add-to-cart event, divided by searches. ",[426,795,796],{},"conversionRate",": searches followed by a purchase, divided by searches. Both need the matching events.",[587,799,801],{"id":800},"search-revenue-and-its-share","Search revenue and its share",[330,803,804,807,808,811,812,815],{},[426,805,806],{},"revenue",": the sum of ",[426,809,810],{},"quantity × price"," over every purchase line tied to a search in the window, in the currency your events send. ",[426,813,814],{},"revenueShare",": that revenue divided by the revenue of every purchase event you sent, tied to a search or not. Send every order, not only the ones that came from search, or the share is meaningless.",[587,817,819],{"id":818},"average-click-position","Average click position",[330,821,822,825],{},[426,823,824],{},"avgClickPosition",": the mean position of clicked results, from 1. Rising means shoppers scroll further before they find what they want.",[587,827,829],{"id":828},"latency","Latency",[330,831,832,420,835,838],{},[426,833,834],{},"latencyP50",[426,836,837],{},"latencyP95",": the time the search took inside Zaproo, in milliseconds, for the median search and for the slowest 5 percent. Network time to your server is not included.",[325,840,842],{"id":841},"timeline","Timeline",[330,844,845,847,848,851,852,393,854,393,857,420,860,862],{},[426,846,841],{}," holds one bucket per hour when the window is two days or shorter, and one per day when it is longer. Every bucket has ",[426,849,850],{},"ts"," (its start), ",[426,853,747],{},[426,855,856],{},"zeroResults",[426,858,859],{},"clicks",[426,861,806],{},". Buckets without traffic are included with zeros, so the series has no gaps.",[325,864,866],{"id":865},"the-api","The API",[605,868],{"auth":869,"method":870,"path":871},"Project member or any secret key","GET","\u002Fv1\u002Fprojects\u002F:projectId\u002Findices\u002F:indexId\u002Fanalytics",[873,874,875,916],"tabs",{},[876,877,878],"tabs-item",{"label":627},[611,879,881],{"className":613,"code":880,"language":615,"meta":616,"style":616},"curl \"https:\u002F\u002Fapi.zaproo-search.com\u002Fv1\u002Fprojects\u002F$PROJECT_ID\u002Findices\u002F$INDEX_ID\u002Fanalytics?from=2026-10-01T00:00:00Z&to=2026-10-15T00:00:00Z&compare=previous&device=mobile\" \\\n  -H \"Authorization: Bearer $ZS_KEY\"\n",[426,882,883,904],{"__ignoreMap":616},[620,884,885,887,890,893,896,899,902],{"class":622,"line":623},[620,886,627],{"class":626},[620,888,889],{"class":634}," \"https:\u002F\u002Fapi.zaproo-search.com\u002Fv1\u002Fprojects\u002F",[620,891,892],{"class":641},"$PROJECT_ID",[620,894,895],{"class":634},"\u002Findices\u002F",[620,897,898],{"class":641},"$INDEX_ID",[620,900,901],{"class":634},"\u002Fanalytics?from=2026-10-01T00:00:00Z&to=2026-10-15T00:00:00Z&compare=previous&device=mobile\"",[620,903,670],{"class":645},[620,905,906,908,910,913],{"class":622,"line":649},[620,907,652],{"class":630},[620,909,655],{"class":634},[620,911,912],{"class":641},"$ZS_KEY",[620,914,915],{"class":634},"\"\n",[876,917,919,927],{"label":918},"MCP",[611,920,925],{"className":921,"code":923,"language":924,"meta":616},[922],"language-text","How did search do last week compared with the week before? Mobile only.\n","text",[426,926,923],{"__ignoreMap":616},[330,928,929,930,933],{},"The agent calls ",[426,931,932],{},"get_search_analytics",", which takes the same parameters.",[455,935,936,946],{},[458,937,938],{},[461,939,940,943],{},[464,941,942],{},"Parameter",[464,944,945],{},"Meaning",[471,947,948,971,990,1008,1021],{},[461,949,950,958],{},[476,951,952,393,955],{},[426,953,954],{},"from",[426,956,957],{},"to",[476,959,960,961,963,964,966,967,525],{},"ISO timestamps. Leave both out for the last 30 days up to now. ",[426,962,954],{}," must be before ",[426,965,957],{},", and the window may span at most the ",[334,968,970],{"href":969},"#retention","retention",[461,972,973,978],{},[476,974,975],{},[426,976,977],{},"compare",[476,979,980,983,984,400,987,525],{},[426,981,982],{},"previous"," (default), ",[426,985,986],{},"year",[426,988,989],{},"none",[461,991,992,997],{},[476,993,994],{},[426,995,996],{},"device",[476,998,999,393,1002,400,1005,525],{},[426,1000,1001],{},"desktop",[426,1003,1004],{},"mobile",[426,1006,1007],{},"tablet",[461,1009,1010,1015],{},[476,1011,1012],{},[426,1013,1014],{},"country",[476,1016,1017,1018,525],{},"An ISO 3166-1 alpha-2 code, ",[426,1019,1020],{},"DE",[461,1022,1023,1028],{},[476,1024,1025],{},[426,1026,1027],{},"includeInternal",[476,1029,1030,1033,1034,525],{},[426,1031,1032],{},"true"," to count every source, not only ",[426,1035,445],{},[330,1037,1038,1039,1042,1043,1046,1047,1049,1050,393,1052,420,1055,1058,1059,420,1062,1065,1066,525],{},"The answer holds ",[426,1040,1041],{},"kpis"," (every headline number as ",[426,1044,1045],{},"{ value, previous }","), ",[426,1048,982],{}," (the comparison window), ",[426,1051,841],{},[426,1053,1054],{},"devices",[426,1056,1057],{},"countries"," (searches per device and per country, for the filters), and ",[426,1060,1061],{},"topQueries",[426,1063,1064],{},"zeroResultQueries"," (the 50 most searched queries, and the 50 most searched that found nothing). A window longer than the retention answers ",[426,1067,1068],{},"400 VALIDATION_FAILED",[325,1070,1071],{"id":970},"Retention",[330,1073,1074],{},"Zaproo keeps the search log and the events for 760 days by default, so a 12-month window can be compared with the year before. Zaproo staff can set the value between 30 and 1825 days for the whole platform. The longest window the API accepts equals the retention. Data rolls over monthly, so a record is deleted within about a month after it passes the retention, not on the day.",[325,1076,1078],{"id":1077},"weekly-digest-and-alerts","Weekly digest and alerts",[330,1080,1081,1082,1085,1086,1089],{},"Every Monday at 07:00 UTC, the owners and admins of the organization get one email per project that had searches last week: the headline numbers against the week before, the top five opportunities and the top five products, with links into the cabinet. Turn it off per project under ",[350,1083,1084],{},"Project → Settings → Email a weekly digest",", or with ",[426,1087,1088],{},"\"analyticsDigest\": false"," on the project update route.",[330,1091,1092],{},"Alerts are checked every morning at 06:00 UTC against the day before. Each project gets at most one per type and day, and the digest switch turns them off too:",[354,1094,1095,1098,1101],{},[357,1096,1097],{},"the zero-result rate rose by half and by at least 5 points against the previous 4 weeks;",[357,1099,1100],{},"searches fell by 60 percent against the same weekday of the previous 4 weeks;",[357,1102,1103],{},"the click-through rate fell by 40 percent.",[330,1105,1106],{},"Each one needs at least 200 searches in the baseline, so a quiet index does not alert on noise.",[325,1108,1110],{"id":1109},"what-gets-logged","What gets logged",[354,1112,1113,1120,1134,1140],{},[357,1114,1115,1116,1119],{},"Searches with a saved profile, on the public route ",[426,1117,1118],{},"POST \u002Fv1\u002Fsearch\u002F:profileKey"," and on the secret route by index id.",[357,1121,1122,1123,420,1126,1129,1130,1133],{},"Not logged: searches with an inline profile (the profile editor's preview, ",[426,1124,1125],{},"preview_profile",[426,1127,1128],{},"test_rule"," over MCP), and autocomplete requests. Autocomplete analytics come from ",[426,1131,1132],{},"suggestion_click"," events.",[357,1135,1136,1137,1139],{},"With each search: the query, the result count, the latency, the device class and country, the filter fields and, for keyword and boolean filters, their values. A ",[426,1138,755],{}," is stored as a salted hash.",[357,1141,1142],{},"Records reach analytics within a few seconds.",[325,1144,1146],{"id":1145},"common-mistakes","Common mistakes",[354,1148,1149,1155,1164,1170],{},[357,1150,1151,1154],{},[350,1152,1153],{},"Reading the rates right after launch."," A few hundred searches make a noisy rate. Judge a change over a week of traffic.",[357,1156,1157,1160,1161,1163],{},[350,1158,1159],{},"Counting your own traffic."," Add your office and your test servers to the excluded IPs, and send ",[426,1162,519],{}," from scripts.",[357,1165,1166,1169],{},[350,1167,1168],{},"Sending only some orders."," The share of revenue compares search orders with all orders. Send every purchase.",[357,1171,1172,1175,1176,1178,1179,1182],{},[350,1173,1174],{},"Searching without a session id."," Without ",[426,1177,755],{},", sessions stay at zero, keystrokes are not collapsed, and an event without a ",[426,1180,1181],{},"searchId"," cannot fall back to the session's last search.",[325,1184,1186],{"id":1185},"related","Related",[354,1188,1189,1193,1197,1201,1205],{},[357,1190,1191],{},[334,1192,253],{"href":254},[357,1194,1195],{},[334,1196,259],{"href":260},[357,1198,1199],{},[334,1200,212],{"href":213},[357,1202,1203],{},[334,1204,218],{"href":219},[357,1206,1207],{},[334,1208,278],{"href":279},[1210,1211,1212],"style",{},"html pre.shiki code .szw1H, html code.shiki .szw1H{--shiki-light:#702C00;--shiki-default:#702C00;--shiki-dark:#FFB757}html pre.shiki code .ssYy9, html code.shiki .ssYy9{--shiki-light:#023B95;--shiki-default:#023B95;--shiki-dark:#91CBFF}html pre.shiki code .semJd, html code.shiki .semJd{--shiki-light:#032563;--shiki-default:#032563;--shiki-dark:#ADDCFF}html pre.shiki code .s7iLA, html code.shiki .s7iLA{--shiki-light:#0E1116;--shiki-default:#0E1116;--shiki-dark:#F0F3F6}html pre.shiki code .sklAV, html code.shiki .sklAV{--shiki-light:#A0111F;--shiki-default:#A0111F;--shiki-dark:#FF9492}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 .sb7M8, html code.shiki .sb7M8{--shiki-light:#024C1A;--shiki-default:#024C1A;--shiki-dark:#72F088}",{"title":616,"searchDepth":649,"depth":649,"links":1214},[1215,1216,1217,1221,1230,1231,1232,1233,1234,1235,1236],{"id":327,"depth":649,"text":328},{"id":385,"depth":649,"text":386},{"id":438,"depth":649,"text":439,"children":1218},[1219,1220],{"id":589,"depth":673,"text":590},{"id":682,"depth":673,"text":524},{"id":730,"depth":649,"text":731,"children":1222},[1223,1224,1225,1226,1227,1228,1229],{"id":741,"depth":673,"text":742},{"id":759,"depth":673,"text":760},{"id":772,"depth":673,"text":773},{"id":786,"depth":673,"text":787},{"id":800,"depth":673,"text":801},{"id":818,"depth":673,"text":819},{"id":828,"depth":673,"text":829},{"id":841,"depth":649,"text":842},{"id":865,"depth":649,"text":866},{"id":970,"depth":649,"text":1071},{"id":1077,"depth":649,"text":1078},{"id":1109,"depth":649,"text":1110},{"id":1145,"depth":649,"text":1146},{"id":1185,"depth":649,"text":1186},"md",{},{"icon":243},{"title":248,"description":251},"kjCgmEH9uWNYrd817SFhx-OsYLgyzQnVygLgGss_pjk",[1243,1244],{"title":230,"path":237,"stem":238,"description":239,"icon":232,"children":-1},{"title":253,"path":254,"stem":255,"description":256,"icon":257,"children":-1},1792794344465]