Installation
How to install and manage
Last updated
How to install and manage
Last updated
Telegram Mini Apps is an SDK and API that turns your Telegram Mini App into a source of valuable data. With this tool, you get instant access to key metrics that help you understand how users interact with your application and what steps need to be taken to optimize it. It supports off-chain events and on-chain events from TON Connect SDK.
1. Add Telegram Mini Apps Analytics to your project
Include the Telegram Mini Apps Analytics script in the header of your HTML document. This script will allow you to track and analyze user interactions effectively.
Alternative solution (not recommended)
@tonconnect/[email protected] and @tonconnect/[email protected] supports info about Web3 events for Telegram Mini Apps Analytics SDK.
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 initialise the SDK
Once you have your unique access token and app name, you can initialize the Telegram Analytics SDK in your code. This step is crucial for enabling the tracking of events without repeatedly transferring the token.
After initializing the Telegram Analytics, you are all set to transfer the data, gain insights, and improve user engagement. (99% of them will be tracked automatically without manual control)
Read more about supported events
SDK docs