Overview
Algolia is a hosted search and discovery API that powers fast, relevant search experiences on websites and applications. It provides real-time search-as-you-type, autocomplete, faceted filtering, and personalized discovery with sub-10ms response times globally. Algolia is used by over 17,000 companies including Lacoste, Stripe, Twitch, Zendesk, and the BBC. It is commonly integrated into e-commerce sites for product search, documentation sites for content search, and SaaS applications for in-app navigation. Algolia's client libraries (algoliasearch, instantsearch.js) are open source and widely available.
What This Script Does
The Algolia integration typically involves loading the algoliasearch client library and an optional UI library (instantsearch.js or a framework-specific equivalent like react-instantsearch). These are commonly self-hosted by the implementing site, loaded from their own CDN, or pulled from a CDN like jsDelivr (cdn.jsdelivr.net/npm/algoliasearch/).
Core script behavior:
- On every keystroke in a search input, the script sends a search query to Algolia's API (
<app-id>-dsn.algolia.net) using the site's public Search API key - Algolia's servers return ranked, filtered results in JSON format within milliseconds
- The script renders results into the UI: product cards, autocomplete dropdowns, facet filter panels
Click analytics (optional, site-configurable):
- When Algolia's Click Analytics feature is enabled, click-through events (which result the user clicked) are sent to Algolia to improve result ranking via machine learning
- A
queryIDis included in search responses and sent back with click events for attribution - This is the primary data collection beyond the search query itself
Cookies and storage:
- Algolia does not set persistent tracking cookies by default in its core search functionality
instantsearch.jsmay usesessionStorageto persist the last search query and filter state for navigation (back-button) experience — this is session-scoped and cleared when the tab closes- If Algolia Personalization is enabled, a persistent user token may be stored to power individualized result ranking
No advertising use: Algolia explicitly does not use search query data for advertising, cross-site tracking, or third-party data sharing. Query logs are used solely to improve search relevance within the implementing site's index.
Consent & Compliance
Consent category: Functional
Algolia provides core site functionality — search. The data collected (search queries, result clicks) is used to improve the search service the user is actively requesting. Under GDPR, processing search queries to deliver search results is covered by legitimate interest or contractual necessity; the user typed a query and expects results. Algolia's Click Analytics improve the service the user is using, not advertising. Under ePrivacy, standard Algolia search does not set consent-relevant cookies; sessionStorage use for navigation state is not subject to cookie consent rules.
If Algolia Personalization is enabled, a persistent user token would require consent evaluation as it creates a behavioral profile.
Algolia is headquartered in Paris and New York; it participates in the EU-US Data Privacy Framework for transatlantic data transfers.
Should You Block This Without Consent?
No. Algolia provides functional search capabilities. It collects only search-related data to improve the service, sets no persistent tracking cookies in default configuration, and does not use data for advertising. It can be loaded without consent as a functional script. The exception is if Algolia Personalization is specifically enabled, which introduces persistent profiling requiring consent.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
dsn.algolia.netFunctionalinsights.algolia.ioFunctionalFrequently Asked Questions
Does Algolia require consent on my website?
No consent is required for standard Algolia search. Algolia processes search queries to deliver results the user actively requested, collects no advertising data, and does not set persistent tracking cookies in its default configuration. Click analytics improve the search service the user is using, not advertising.
What cookies and data does Algolia collect?
In standard configuration, Algolia sets no persistent tracking cookies. The instantsearch.js library may use sessionStorage to persist the last query and filter state for back-button navigation — this is session-scoped and cleared when the tab closes. Click events may be sent to Algolia to improve ranking if Click Analytics is enabled.
How does ConsentStack handle Algolia?
ConsentStack classifies Algolia as functional and does not block it under standard consent configurations. If Algolia Personalization is enabled on your site, ConsentStack would require analytics or marketing consent before loading the personalization features that create persistent user profiles.
Related Vendors
Manage consent for Algolia
ConsentStack automatically detects and manages Algolia trackers so your site stays compliant with global privacy regulations.