@twinalyze/web-analytics 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # @twinalyze/web-analytics
2
+
3
+ **Twinalyze Web Analytics SDK** for tracking events, sessions, users, and performance in modern web applications.
4
+
5
+ ## Installation
6
+
7
+ You can install the package via npm:
8
+
9
+ ```bash
10
+ npm install @twinalyze/web-analytics
11
+
12
+ Usage
13
+ Initialize the SDK
14
+
15
+ First, import the SDK into your JavaScript file:
16
+ import { Twinalyze } from '@twinalyze/web-analytics';
17
+
18
+ Next, initialize the SDK with your API key:
19
+ TwinalyzeAnalytics.init({ apiKey: 'YOUR_API_KEY' , organization: 'YOUR_ORG_KEY' });
20
+ now auto events start tracking
21
+
22
+ Track Custom Events:
23
+ TwinalyzeAnalytics.track('Custom_Event_Name', {
24
+ label: 'Event Label',
25
+ value: 100
26
+ });