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.
Is Algolia GDPR compliant?
Algolia typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Algolia can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Algolia, not on Algolia itself.
Consent Categories
Also Known As
Industries
Tracked Domains (2)
dsn.algolia.netFunctionaldsn.algolia.net is a functional domain operated by Algolia, used to run site features like chat, video, embeds, and preferences.
insights.algolia.ioFunctionalinsights.algolia.io is a functional domain operated by Algolia, used to run site features like chat, video, embeds, and preferences.
Frequently Asked Questions
Related Vendors
Manage consent for Algolia
ConsentStack automatically detects and manages Algolia trackers so your site stays compliant with global privacy regulations.