To learn more about the SDK, here are some useful links:
- Documentation: https://docs.telemetree.io/
- Boilerplate: https://github.com/TONSolutions/react-twa-boilerplate
Telemetree is a comprehensive free analytics tool designed specifically for Telegram Mini Apps. With our SDKs, developers, marketers, and product managers can easily track and optimize user engagement, making data-driven decisions to boost user acquisition and retention. Telemetree simplifies Analytics for Telegram Mini Apps by delivering insights into user behaviors, acquisition channels, and in-app interactions.
- Real-Time Analytics: Monitor user activity within your Telegram Mini App in real-time.
- User Retention Metrics: Track returning users and pinpoint which features encourage app retention.
- Web3 data: discover web3 metrics associated with your users.
- Seamless Integration: Our SDKs are lightweight and integrate easily with auto event mapping.
- Telegram-native: Telemetree is built natively for Telegram.
- User segmentation: API for personalized notifications based on cohorts, completed actions. web3 data and more.
- Free tier with wide limits.
Telemetree is uniquely focused on the needs of Telegram Mini App developers, providing tailored metrics and insights that help you grow and retain your user base efficiently. As the demand for Analytics for Telegram Mini Apps grows, Telemetree remains at the forefront, offering tools that cater specifically to the Telegram ecosystem.
Start capturing valuable insights with Telemetree and make data-driven decisions for your app's growth on Telegram.
Consider visiting our resources for more info about the state of the Telegram Mini Apps ecosystem and Telegram analytics.
Install it from NPM:
$ npm install @tonsolutions/telemetree-react
Call this script in <head>
:
<script src="https://telegram.org/js/telegram-web-app.js"></script>
In your app:
import { TwaAnalyticsProvider } from '@tonsolutions/telemetree-react';
export function App() {
return (
<TwaAnalyticsProvider
projectId="YOUR_PROJECT_ID"
apiKey="YOUR_API_KEY"
appName="YOUR_APPLICATION_NAME"
>
...
</TwaAnalyticsProvider>
);
}
import { useTWAEvent } from '@tonsolutions/telemetree-react';
const builder = useTWAEvent();
builder.track('transfer', {
amount: 1000,
method: 'TON',
});
In order to track TON related operations, such as wallet connections, signed transactions etc, you should use @tonconnect/ui
or @tonconnect/ui-react
. When these libs are detected, Telemetree will automatically log on-chain events.
Telemetree SDKs are available for various frameworks and environments, making it easy to incorporate powerful analytics into any Telegram Mini App.
- React SDK: https://github.com/TONSolutions/telemetree-react
- Node.js SDK: https://github.com/TONSolutions/telemetree-node
- .NET SDK: https://github.com/MANABbl4/Telemetree.Net (community-supported)