@tonconnect/sdk 3.4.0-beta.7 → 3.4.1
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 +19 -0
- package/dist/tonconnect-sdk.min.js +1 -1
- package/dist/tonconnect-sdk.min.js.map +1 -1
- package/lib/cjs/index.cjs +4 -10
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/index.mjs +4 -10
- package/lib/esm/index.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,6 +64,25 @@ const connector = new TonConnect({
|
|
|
64
64
|
});
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
+
## Analytics
|
|
68
|
+
|
|
69
|
+
You can configure analytics collection when creating the connector:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
const connector = new TonConnect({
|
|
73
|
+
manifestUrl: 'https://myApp.com/tonconnect-manifest.json',
|
|
74
|
+
analytics: { mode: 'off' } // or 'telemetry' (default), 'full'
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Analytics modes:**
|
|
79
|
+
|
|
80
|
+
| Mode | Description |
|
|
81
|
+
|-------------------------|------------------------------------------------------------|
|
|
82
|
+
| **off** | Analytics turned off. No events are collected or sent. |
|
|
83
|
+
| **telemetry** (default) | Analytics used for technical research and issue debugging. |
|
|
84
|
+
| **full** | Full analytics events. |
|
|
85
|
+
|
|
67
86
|
## Subscribe to the connection status changes
|
|
68
87
|
```js
|
|
69
88
|
const unsubscribe = connector.onStatusChange(
|