New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@rudderstack/rudder-sdk-node

Package Overview
Dependencies
Maintainers
0
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rudderstack/rudder-sdk-node

Rudder Node SDK

  • 2.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is @rudderstack/rudder-sdk-node?

@rudderstack/rudder-sdk-node is a Node.js SDK for RudderStack, a customer data platform that helps you collect, transform, and route your customer data to various destinations. This SDK allows you to track events, identify users, and manage user data efficiently.

What are @rudderstack/rudder-sdk-node's main functionalities?

Track Events

The track method allows you to record any actions your users perform, along with any properties that describe the action. This is useful for tracking user behavior and interactions within your application.

const { Analytics } = require('@rudderstack/rudder-sdk-node');
const analytics = new Analytics('YOUR_WRITE_KEY', 'DATA_PLANE_URL');

analytics.track({
  userId: 'user123',
  event: 'Item Purchased',
  properties: {
    item: 'T-shirt',
    price: 19.99
  }
});

Identify Users

The identify method is used to associate a user with their unique ID and record traits about them. This helps in building a comprehensive profile of the user.

const { Analytics } = require('@rudderstack/rudder-sdk-node');
const analytics = new Analytics('YOUR_WRITE_KEY', 'DATA_PLANE_URL');

analytics.identify({
  userId: 'user123',
  traits: {
    email: 'user@example.com',
    name: 'John Doe'
  }
});

Group Users

The group method associates an individual user with a group, like a company or team. This is useful for applications that need to manage users in groups or organizations.

const { Analytics } = require('@rudderstack/rudder-sdk-node');
const analytics = new Analytics('YOUR_WRITE_KEY', 'DATA_PLANE_URL');

analytics.group({
  userId: 'user123',
  groupId: 'group123',
  traits: {
    name: 'Company Inc.',
    industry: 'Software'
  }
});

Other packages similar to @rudderstack/rudder-sdk-node

Keywords

FAQs

Package last updated on 26 Feb 2025

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