Skip to main content
  • Type: list<string>
  • Default: []
  • Scope: search
The analyticsTags parameter lets you assign custom tags to a search query. These tags are used to segment and analyze your search traffic in Algolia Analytics. For example, you can apply different tags such as "mobile" or "desktop" to compare behavior across platforms.

Usage

  • Each tag can be up to 100 characters. Tags longer than that are ignored.
  • Tags that start with alg# are reserved and will be ignored.
  • You can assign up to 10 tags per query.
  • You can use up to 1,750 unique tag combinations every 5 minutes.
    Additional combinations are ignored. For example, "ios", "en", and "ios,en" count as three combinations.

Example

Current API clients

index.Search(new Query("")
{
    AnalyticsTags = new List
    {
        "front_end",
        "website2"
    },
});
index.Search(new Query("")
{
    Analytics = false
});
I