Skip to main content

Unreal

Last updated 09/03/2026
tip

Android and iOS are currently supported.

Latest version: v1.0.0

Update time: 2025-01-09

Downloads: Download

Beta version: None

1. Overview​

Starting from AE 4.4, the Engage module provides the client-triggered task feature, which supports millisecond-level triggering in in-app scenarios such as new user registration and character creation, as well as real-time A/B splitting. On the client side, the ThinkingData SDK communicates with the AE backend to fetch and evaluate tasks.

Integrate the ThinkingData SDK into your app. On the app side, you only need to handle interactions with the ThinkingData SDK and don't need to care about task details in the AE backend.

2. Integrate the SDK​

Client-triggered tasks depend on the following ThinkingData SDKs:

SDK nameDescriptionVersion requirement
TDAnalyticsCollects and processes data>= 2.1.0
TDRemoteConfigFetches configuration from the AE backend>= 1.0.0
TDStrategyProvides client-side triggering>=1.0.0

2.1 Integrate the plugins​

Download the Unreal SDK, unzip it, and put TDAnalytics TDRemoteConfig TDStrategy into your project's Plugins directory. If the Plugins directory doesn't exist, first create a Plugins directory under the project root, and then put these three plugins into it.

2.2 Activate the plugins​

  1. Restart Unreal Editor

  2. Open Edit > Plugins, and enable TDAnalytics TDRemoteConfig TDStrategy under the project TDAnalytics TDRemoteConfig TDStrategy categories

  3. Open Edit > Project Settings, and set the TDAnalytics TDRemoteConfig TDStrategy parameters under the Plugins category:

    • Server Url: Required. The receiver URL, which must be an HTTPS URL
    • App ID: Required. The APP ID of your project, which you can find on the Project Settings page in the AE backend
    • Enable Log: Whether to enable debug logs
  4. Add the following content to the DefaultEngine.ini file in the Config directory:

[Analytics]
ProviderModuleName=TDAnalytics
  1. If you want to use the SDK directly in C++ code, add the following content to the *.Build.cs file of your project:
PrivateDependencyModuleNames.AddRange(new string[] { "TDAnalytics","TDRemoteConfig","TDStrategy" });
PrivateIncludePathModuleNames.AddRange(new string[] { "TDAnalytics","TDRemoteConfig","TDStrategy" });

3. Initialization​

Initialize the SDK

#include "TDAnalytics.h"
#include "TDRemoteConfig.h"
#include "TDStrategy.h"
//Initialize the SDK
UTDAnalytics::Initialize();
UTDRemoteConfig::Initialize();
UTDStrategy::Initialize();

4. Set a callback listener​

After the SDK is initialized, set a callback listener for the TDStrategy SDK.

void OnTriggerResult(FString str){

}

UTDStrategy::SetTriggerListener(OnTriggerResult);

4.1 Callback data model​

Property description

Property nameTypeDescription
channelMsgTypeStringChannel message type
appIdStringThe app id of your AE project
pushIdStringChannel send ID of the operation task
taskIdStringID of the operation task
contentJSONObjectPush content of the operation task
userParamsJSONObjectCustom parameters in the client channel
opsPropertiesJSONObjectChannel information carried by the client-triggered task, used as receipt parameters for touch funnel events.
Was this page helpful?