Last updated October 1, 2026
Analytics
Enables your mini game to report custom events to TikTok for advertising optimization and analytics, helping improve ad delivery models and track user behavior.
TTMinis.game.reportEvent(opts)
Reports events to TikTok for optimizing advertising delivery models.
Parameters
Field | Type | Description | Required |
|
| The event name to report | Yes |
|
| The event parameters. A record of key-value pairs. | No |
|
| The callback function for a successful API call | No |
|
| The callback function for a failed API call | No |
|
| The callback function for the end of the API call (executed for both success and failure) | No |
Example
TTMinis.game.reportEvent({
eventName: 'EVENT_NAME',
params: {
a: '111'
},
success(res) {
console.log('res', res)
}
})