Twinalyze Web Analytics SDK for tracking events, sessions, users, and performance in modern web applications.
npm install @twinalyze/web-analytics
Twinalyze Web Analytics SDK for tracking events, sessions, users, and performance in modern web applications.
Using npm CLI:
``bash`
npm install @twinalyze/web-analytics
Import the package into your project and initialize it with your API key.
`bash
import { TwinalyzeAnalytics } from '@twinalyze/web-analytics';
TwinalyzeAnalytics.init({ apiKey: 'YOUR_API_KEY' , organization: 'YOUR_ORG_ID' });
`
Installing via script loader
`bash`
bash
TwinalyzeAnalytics.track('Custom_Event_Name', { label: 'Event Label' , value: 100 })
``