Skip to main content
The analytics parameter controls whether a search query is recorded in Algolia Analytics. This lets you exclude specific queries from analytics reporting.

Usage

  • If true (default), the query is tracked and included in analytics reports.
  • If false, the query is excluded from analytics.

Example

Current API clients

var response = await client.SearchSingleIndexAsync<Hit>(
  "INDEX_NAME",
  new SearchParams(new SearchParamsObject { Query = "query", Analytics = false })
);
index.Search(new Query("")
{
    Analytics = false
});
Last modified on March 16, 2026