Algolia

Algolia

Algolia is a hosted search and discovery API used by websites and apps to power fast, relevant search experiences. Scripts connect the browser to Algolia's API to execute search queries, display autocomplete suggestions, and render results. Data collected is limited to search queries and click events for relevance tuning — no behavioral tracking for advertising.

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 queryID is 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.js may use sessionStorage to 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.

Visit website

Consent Categories

Functional

Also Known As

Algolia searchsite search APIInstantSearch.jsautocomplete widgetAlgolia cookies

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

dsn.algolia.netFunctional
insights.algolia.ioFunctional

Frequently 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

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Algolia

ConsentStack automatically detects and manages Algolia trackers so your site stays compliant with global privacy regulations.