@twinalyze/web-analytics 1.0.8 → 1.0.10
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 +3 -4
- package/dist/cdn.global.js +10 -10
- package/dist/cdn.global.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -11,7 +11,6 @@ To get started with using Twinalyze Web SDK, install the package to your project
|
|
|
11
11
|
```bash
|
|
12
12
|
npm install @twinalyze/web-analytics
|
|
13
13
|
```
|
|
14
|
-
|
|
15
14
|
<!-- **Using yarn CLI:**
|
|
16
15
|
```bash
|
|
17
16
|
yarn add @twinalyze/web-analytics
|
|
@@ -19,14 +18,14 @@ yarn add @twinalyze/web-analytics
|
|
|
19
18
|
|
|
20
19
|
Import the package into your project and initialize it with your API key.
|
|
21
20
|
```bash
|
|
22
|
-
import {
|
|
21
|
+
import { TwinalyzeAnalytics } from '@twinalyze/web-analytics';
|
|
23
22
|
|
|
24
|
-
TwinalyzeAnalytics.init({ apiKey: 'YOUR_API_KEY' , organization: '
|
|
23
|
+
TwinalyzeAnalytics.init({ apiKey: 'YOUR_API_KEY' , organization: 'YOUR_ORG_ID' });
|
|
25
24
|
```
|
|
26
25
|
|
|
27
26
|
Installing via script loader
|
|
28
27
|
```bash
|
|
29
|
-
<script src="https://cdn.jsdelivr.net/npm/@twinalyze/web-analytics
|
|
28
|
+
<script src="https://cdn.jsdelivr.net/npm/@twinalyze/web-analytics/dist/cdn.global.min.js"></script>
|
|
30
29
|
```
|
|
31
30
|
|
|
32
31
|
## Tracking events
|