Preparations
Preparations before connection
Last updated
Preparations before connection
Last updated
Web3 events for the Telegram Mini Apps Analytics SDK are supported by the @tonconnect/ui
and @tonconnect/ui-react
libraries since version 2.0.3, @tonconnect/sdk
since version 3.0.3.
Read more about TON Connect integration
Don't worry if your app doesn't use TON Connect, the analytics SDK will still work and collect non-Web3 events.
Initiate a conversation with our Data Chief. It will assist you in generating a unique access token required for the analytics records. Additionally, you can manage your existing tokens through this bot.
Provide to Data Chief bot your Telegram Bot URL, and domain where your mini app is hosted and you will receive a token to initialize the SDK.
Now you can initialize the SDK in your application. There are two ways to do this:
via <script> tag (See Installation via <script> tag page)
via NPM package (See Installation via NPM package page)
SDK installation: