
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
@algolia/client-analytics
Advanced tools
Documentation • InstantSearch • Community Forum • Stack Overflow • Report a bug • Support
[!TIP] This API client is already a dependency of the algoliasearch client, you don't need to manually install
@algolia/client-analyticsif you already havealgoliasearchinstalled.
To get started, you first need to install @algolia/client-analytics (or any other available API client package). All of our clients comes with type definition, and are available for both browser and node environments.
yarn add @algolia/client-analytics@5.46.1
# or
npm install @algolia/client-analytics@5.46.1
# or
pnpm add @algolia/client-analytics@5.46.1
Add the following JavaScript snippet to the of your website:
<script src="https://cdn.jsdelivr.net/npm/@algolia/client-analytics@5.46.1/dist/builds/browser.umd.js"></script>
You can now import the Algolia API client in your project and play with it.
import { analyticsClient } from '@algolia/client-analytics';
const client = analyticsClient('YOUR_APP_ID', 'YOUR_API_KEY');
For full documentation, visit the Algolia JavaScript API Client.
Encountering an issue? Before reaching out to support, we recommend heading to our FAQ where you will find answers for the most common issues and gotchas with the client. You can also open a GitHub issue
The Algolia JavaScript API Client is an open-sourced software licensed under the MIT license.
Elasticlunr is a lightweight search engine providing similar search capabilities to Algolia but is designed for smaller scale applications. Unlike @algolia/client-analytics, it focuses more on the search engine itself rather than analytics.
The search-insights package is another Algolia product that enables capturing search analytics data. It complements @algolia/client-analytics by providing a more event-centric view of user interactions, such as click and conversion tracking.
FAQs
JavaScript client for client-analytics
The npm package @algolia/client-analytics receives a total of 2,491,143 weekly downloads. As such, @algolia/client-analytics popularity was classified as popular.
We found that @algolia/client-analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.