Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@algolia/client-analytics

Package Overview
Dependencies
Maintainers
3
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@algolia/client-analytics

JavaScript client for client-analytics

  • 5.15.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.8M
decreased by-1.37%
Maintainers
3
Weekly downloads
 
Created

What is @algolia/client-analytics?

The @algolia/client-analytics package is designed to interact with Algolia's Analytics API, enabling developers to track and analyze search behavior and performance within their applications. It provides a comprehensive set of features for fetching analytics data, such as popular searches, no-result searches, and search counts, allowing for a deeper understanding of user interaction and search effectiveness.

What are @algolia/client-analytics's main functionalities?

Get Popular Searches

This feature allows you to retrieve the most popular searches made in a specific index. It's useful for understanding what users are most frequently looking for.

{"client.initAnalytics().getTopSearches({ index: 'your_index_name', size: 10 }).then((result) => { console.log(result); });"}

Get Searches with No Results

This functionality enables you to fetch searches that returned no results, which can be critical for identifying gaps in your content or areas where the search experience can be improved.

{"client.initAnalytics().getNoResultsRate({ index: 'your_index_name', size: 10 }).then((result) => { console.log(result); });"}

Get Search Count

This feature provides the total number of searches performed in a given index over a specified period. It's useful for tracking the overall usage and engagement with the search functionality.

{"client.initAnalytics().getSearchCount({ index: 'your_index_name' }).then((result) => { console.log(result); });"}

Other packages similar to @algolia/client-analytics

FAQs

Package last updated on 19 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc