@twinalyze/web-analytics
v1.0.12
Published
Twinalyze Web Analytics SDK for tracking events, sessions, users, and performance in modern web applications.
Maintainers
Readme
@twinalyze/web-analytics
Twinalyze Web Analytics SDK for tracking events, sessions, users, and performance in modern web applications.
Installation and Quick Start
To get started with using Twinalyze Web SDK, install the package to your project via npm, yarn or script loader.
Using npm CLI:
npm install @twinalyze/web-analyticsImport the package into your project and initialize it with your API key.
import { TwinalyzeAnalytics } from '@twinalyze/web-analytics';
TwinalyzeAnalytics.init({ apiKey: 'YOUR_API_KEY' , organization: 'YOUR_ORG_ID' });Installing via script loader
<script src="https://cdn.jsdelivr.net/npm/@twinalyze/web-analytics/dist/cdn.global.min.js"></script>Tracking events
Once the SDK is initialize, you can start tracking events.
TwinalyzeAnalytics.track('Custom_Event_Name', { label: 'Event Label' , value: 100 })