index.html
file in the <head>
:App.js
.
TwaAnalyticsProvider
component to wrap your application’s root component. This enables analytics tracking throughout your app
'YOUR_PROJECT_ID'
, 'YOUR_API_KEY'
, and 'YOUR_APPLICATION_NAME'
with the actual values provided when you set up your Telemetree account.
TwaAnalyticsProvider
, the SDK will automatically start capturing data based on your configuration.
initData
when users enter your Telegram Mini App. This streamlined process ensures that every event captured is already associated with the user’s profile, providing you with a comprehensive view of user activities without additional coding.
@tonconnect/ui
or @tonconnect/ui-react
. When these libs are detected, Telemetree will automatically log on-chain events.
useTWAEvent
hook in the component where you want to track events.
TwaAnalyticsProvider
is properly wrapped around your app’s root component.
track
method correctly with the necessary parameters.
https://telegram.org/js/telegram-web-app.js
) from working correctly. In this case you have to use a Telegram SDK. This will solve the issue. Here is the Telemetree boilerpate app using SDK.
Incorrect User or Wallet Data: