Installation via NPM package
How to install and use via <script> tag
Last updated
How to install and use via <script> tag
Last updated
1. Install the NPM package in your project
2. Add Telegram Mini Apps Analytics in code
Once you have your unique access token (if not, see page) and install NPM package, you can initialize the Telegram Analytics SDK in your code. To ensure that all events are collected correctly, you must initialize the SDK before the application starts rendering. For example, in react applications, before calling the render()
function
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)
SDK installation: