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

@wildberries/wb-front-analytics-tracker

Package Overview
Dependencies
Maintainers
3
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wildberries/wb-front-analytics-tracker

analytics tracker for js and react

latest
npmnpm
Version
1.2.0
Version published
Maintainers
3
Created
Source

@wildberries/wb-front-analytics-tracker

This package designed for wildberries analytics and contains:

  • analyticsEventEmitter - sender function for analytics
  • withAnalytics - HOC for React components
  • SHARED_EVENTS - shared event constants

analyticsEventEmitter contains methods:

  • init - method to initialize analyticsEventEmitter, params:
    • prefix (string, non requred) - will be added to all events if in the events will be custom
  • getIsInitialized - method to check if analyticsEventEmitter was initialized
  • sendEvent - method to send events, params:
    • name (string, required) - event name
    • params (any, required) - event params
    • customEvent (boolean) - need to add prefix or not

withAnalytics injects method:

  • sendAnalytics, params:
    • name (string, required)
    • params (any, required)
    • customEvent (boolean)

SHARED_EVENTS:

export const SHARED_EVENTS = {
  PAGE_VIEW: 'pageview',
  PERFORMANCE: 'suppliers-portal-front-performance',
};

FAQs

Package last updated on 17 Nov 2023

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