What is Conversion?
Conversion refers to user conversions, a key goal for project developers who aim to acquire new users through exchanges. To achieve better results from these exchanges, it's essential to report new users to Ton AI. This reporting is termed as a Conversion event by Ton AI.
Installing the SDK
Please refer to SDK Installation for guidance on how to install the SDK.
Conversion Reporting
Use the SDK on the frontend to report Conversion events:
import { SendTonExchangeConversion } from 'ton-ai-sdk'
if (user.isNewUser) {
SendTonExchangeConversion()
}
// Optional: The SDK will automatically retrieve the current user's TelegramUserId. If it fails, you need to provide it manually
// SendTonExchangeConversion('current-telegram-user-id');
Tips
Reporting Conversions is crucial
- The system will recommend more suitable users based on the characteristics of Conversion users.
- With Conversion data, the system calculates the conversion rate (CR = Conversions / Clicks) for each partner's inbound traffic. Partners with a higher CR will receive higher exposure priority.