Skip to main content

TikTok AppLog

Important

Do not integrate on your own.The TikTok channel requires formal cooperation with TikTok before you can register an application and obtain the configuration required for integration.If you need to integrate, please consult your business contact first.

Player Network supports two separate TikTok reporting channels that use different SDKs and report to different TikTok backends. Choose the one that matches your business requirements.

AppLog (TTGP)Business SDK Analytics
SDKTikTok SDK bundled inside TTGPStandalone TikTok Business SDK
DashboardTikTok AppLog / TTGP Partner dashboardTikTok For Business Ads Manager
PlatformsiOS & AndroidAndroid only
API styleDedicated TikTokTTGPAppLog* APIsGeneric AnalyticsInit + ReportEvent with spChannels=TikTok
Identity mappingAutomatic Player Network openid ↔ TTGP openidAutomatic via TikTokBusinessSdk.identify() (requires ANALYTICS_AUTH_REPORT_ENABLE = 1)
When to useRecommended for new integrationsOnly when your TikTok business contact instructs

For Business SDK Analytics documentation, see Configure TikTok reporting (Business SDK).


AppLog channel

Player Network surfaces TikTok AppLog as a fire-and-forget event-reporting channel. The channel can report predefined lifecycle events (install, launch, register, login) and custom events directly to TikTok through the bundled TikTok SDK.

Supported platforms

AppLog is supported on:

  • iOS
  • Android

Enable switch

The feature is controlled by the following key in INTLConfig.ini:

[TikTok]
TIKTOK_TTGP_APP_LOG_ENABLE = true
PropertyValue
Defaulttrue
Supported platformsAndroid, iOS
RequiredNo

If the switch is set to false, calls to SetCommonParams and ReportEvent return immediately without reporting any data.

Event types

Use the numeric event type values when calling ReportEvent.

EventValueDescription
Install1First-time installation.
Launch2Application launch.
Register3User registration.
Login4User login.
Custom5A custom event with a name and JSON parameters.

SetCommonParams

Call SetCommonParams after the Player Network login succeeds and after the player logs in or binds TikTok. The SDK uses this call to attach identity and device context to every subsequent event.

The SDK resolves the following values automatically:

  • TTGP openid — read from the internal mapping that is persisted when TikTok login or bind succeeds.
  • Advertising ID — GAID on Android, IDFA on iOS, obtained from the device-info module.

You only need to pass the in-game user profile:

ParameterRequiredDescription
userIdNoIn-game user ID. Pass an empty string if unavailable.
userNickNameNoIn-game user nickname.Pass an empty string if unavailable.
userIconNoIn-game user avatar URL. Pass an empty string if unavailable.
INTLAPI.TikTokTTGPAppLogSetCommonParams(
userId: playerId,
userNickName: playerNickname,
userIcon: playerAvatarUrl
);
info

If no TikTok identity mapping exists when you call SetCommonParams, the TTGP openid defaults to "0".The event may still be accepted, but TikTok user attribution may be unavailable.

ReportEvent

ReportEvent is fire-and-forget. There is no result observer; reporting failures are logged internally.

For Custom events, provide eventName and an optional paramsJson string.

// Report a predefined login event
INTLAPI.TikTokTTGPAppLogReportEvent(4);

// Report a custom event
INTLAPI.TikTokTTGPAppLogReportEvent(
eventType: 5,
eventName: "CompleteTutorial",
paramsJson: "{ \"level\": \"1\" }"
);
caution

Call SetCommonParams before you start reporting events.If ReportEvent is called before SetCommonParams, the SDK automatically calls SetCommonParams("", "", "") and logs a warning.The reported event is still sent, but user attribution may be incomplete.

Identity attribution behavior

AppLog relies on a mapping between the Player Network openid and the TikTok TTGP openid.The SDK creates this mapping automatically when:

  • TikTok login succeeds.
  • TikTok account binding succeeds.

The mapping is removed automatically when TikTok is unbound.If the mapping is missing, the TTGP openid falls back to "0" and TikTok user attribution may be unavailable.

Testing and troubleshooting

  1. Confirm that TIKTOK_TTGP_APP_LOG_ENABLE is set to true in INTLConfig.ini.
  2. Ensure the INTLTikTok plugin is included in the Android or iOS build.
  3. Make sure Player Network login and TikTok login or bind have both succeeded before calling SetCommonParams.
  4. Check the native device or editor logs for warnings from TikTokTTGPAppLog if events are not appearing.
  5. Custom event parameters must be valid JSON. Invalid JSON is ignored, and the event is reported without parameters.

Business SDK Analytics (separate channel)

The TikTok Business SDK analytics path is a separate reporting channel from AppLog. It uses the standalone TikTok Business SDK and reports to the TikTok For Business Ads Manager, not the TTGP backend. It is Android-only and configured with TIKTOK_EVENT_APPID and TIKTOK_EVENT_TT_APPID. For details, see Configure TikTok reporting (Business SDK).