miniappsanalytics
v0.0.19
Published
Miniapps analytics is an SDK that allows owners of Telegram web applications to receive analytics about consumer actions of their miniapp.
Downloads
483
Readme
Miniapps analytics
Version 0.0.2
Miniapps analytics is an SDK that allows owners of Telegram web applications to receive analytics about consumer actions of their miniapp.
Installation
- Add the script tag to your html head
<script src="https://unpkg.com/miniappsanalytics@latest/dist/src/index.js" type="text/javascript"></script>
- Start a conversation with a bot that will give you a unique identifier (https://t.me/analyticsminiapps_bot or @analyticsminiapps_bot)
- Initialize the token on your HTML page
<script>
window.telegramAnalytics.init('YOUR_TOKEN')
</script>
Result
As a result, after initializing your webapp, the statistics will record that the user has opened a miniapp