testanalyticspackage
TypeScript icon, indicating that this package has built-in type declarations

0.0.28 • Public • Published

Telegram Analytics

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 access to key metrics that help you understand how users interact with your application and what steps need to be taken to optimize it.


Getting started

Installation with cdn

Add Telegram Analytics script to HTML head

<script async src="https://tganalytics.xyz/index.js" type="text/javascript"></script>

Alternative solution (not recommended)

<script async src="https://unpkg.com/@telegram-apps/analytics@latest/dist/index.js" type="text/javascript"></script>

Initialize the Telegram Mini Apps Analytics SDK

window.telegramAnalytics.init({
    token: 'YOUR_TOKEN',
    appName: 'APP_NAME',
});

Installation with npm

Install the npm package

npm install @telegram-apps/analytics

Initialize the Telegram Mini Apps Analytics SDK

To ensure that all events are collected, initialize the SDK before your application starts rendering

import telegramAnalytics from '@telegram-apps/analytics'

telegramAnalytics.init({
    token: 'YOUR_TOKEN',
    appName: 'APP_NAME',
});

Readme

Keywords

none

Package Sidebar

Install

npm i testanalyticspackage

Weekly Downloads

1,575

Version

0.0.28

License

MIT

Unpacked Size

216 kB

Total Files

9

Last publish

Collaborators

  • sorawalker