Skip to main content
Required ACL: search This method appends a custom user agent to the default one when making requests to the Insights API.

Examples

The following example adds the string β€œcustom” to the default user agent. For more information about initializing the JavaScript Insights client aa, see Initialize the Insights client.
JavaScript
aa("addAlgoliaAgent", "custom")
// returns insights-js (X.X.X); custom

Parameters

userAgent
string
Custom user agent. This gets added to the default one.
⌘I