TikTok for Developers

Developer Docs

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

eventName

string

The event name to report

Yes

params

object

The event parameters. A record of key-value pairs.

No

success

function

The callback function for a successful API call

No

fail

function

The callback function for a failed API call

No

complete

function

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)
  }
})
TikTok for Developers