New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@dcl/analytics-component

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dcl/analytics-component

Analytics component for core components library

latest
npmnpm
Version
0.2.8
Version published
Maintainers
2
Created
Source

Analytics Component (@dcl/analytics-component)

A component for sending analytics events to an external API.

Features

  • Send analytics events with environment context
  • Error handling and logging
  • Configurable API endpoint and authentication

Usage

import { createAnalyticsComponent } from '@dcl/analytics-component'

const analytics = await createAnalyticsComponent(
  { fetch, logs },
  'service-name',
  'prd',
  'https://api.analytics.com/events',
  'your-api-token'
)

await analytics.sendEvent({
  event: 'user_action',
  body: { userId: '123', action: 'click' }
})

FAQs

Package last updated on 26 Dec 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