ReportCustomEventStep [Player Network SDK Only]
[Player Network SDK Only] Reports the data of a custom event to calculate the conversion rate for funnel analysis.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void ReportCustomEventStep(
string eventName,
uint step,
string stepName,
bool result,
int errorCode = 0,
string paramsJson = "{}");
static void ReportCustomEventStep(
const std::string &event_name,
unsigned int step,
const std::string &step_name,
bool result,
int error_code,
const std::map<std::string, std::string> &extra_params);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
eventName | string | Event name |
step | uint | Step ID Counting from 0 |
stepName | string | Step name |
result | bool | Step result true: success false: fail |
errorCode | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
paramsJson | string | The extended field JSON string |
Parameter | Type | Description |
---|---|---|
event_name | std::string | Event name |
step | int | Step ID Counting from 0 |
step_name | std::string | Step name |
result | bool | Step result true: success false: fail |
error_code | int | Error code result=true, errorCode=0 result=false, errorCode is custom error code |
extra_params | std::map<std::string, std::string> | The extended field JSON string |
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportCustomEventStep("eventName", 0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportCustomEventStep("eventName", 0, "stepName", true);