Telegram analytics is a unique SDK and API that turns your mini-application into a source of valuable data. Telegram analytics doesn't just track user activity in your app, it turns it into clear and useful analytics. With this tool, you get instant acces
npm install testanalyticspackagejavascript
`
$3
`javascript
`
$3
`javascript
window.telegramAnalytics.init({
token: 'YOUR_TOKEN',
appName: 'APP_NAME',
});
`
Installation with npm
Install the npm package
`npm install @telegram-apps/analytics`
$3
To ensure that all events are collected, initialize the SDK before your application starts rendering
`javascript
import telegramAnalytics from '@telegram-apps/analytics'
telegramAnalytics.init({
token: 'YOUR_TOKEN',
appName: 'APP_NAME',
});
``