@tonconnect/ui 2.4.0-beta.7 → 2.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 CHANGED
@@ -89,6 +89,24 @@ const tonConnectUI = new TonConnectUI({
89
89
 
90
90
  This will highlight wallets that support sending multiple messages and extra currencies, but won’t hide those that don’t. Use this to gently recommend more feature-rich wallets without excluding others.
91
91
 
92
+ ### Analytics
93
+
94
+ You can configure analytics collection when creating TonConnectUI:
95
+
96
+ ```ts
97
+ const tonConnectUI = new TonConnectUI({
98
+ manifestUrl: 'https://<YOUR_APP_URL>/tonconnect-manifest.json',
99
+ analytics: { mode: 'off' } // or 'telemetry' (default), 'full'
100
+ });
101
+ ```
102
+
103
+ **Analytics modes:**
104
+
105
+ | Mode | Description |
106
+ |-------------------------|------------------------------------------------------------|
107
+ | **off** | Analytics turned off. No events are collected or sent. |
108
+ | **telemetry** (default) | Analytics used for technical research and issue debugging. |
109
+ | **full** | Full analytics events. |
92
110
 
93
111
  See all available options:
94
112