Report Custom Event Step (ReportCustomEventStep) [Player Network SDK Only]
[Only for Player Network SDK] Reports custom event data to calculate conversion rates for funnel analysis.
Supported Platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| eventName | string | Event Name |
| step | uint | Step ID Counting starts from 0 |
| stepName | string | Step name |
| result | bool | Step Result true: success false: failure |
| errorCode | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| paramsJson | string | Additional Parameters JSON format |
| Parameters | Type | Description |
|---|---|---|
| event_name | std::string | Event Name |
| step | int | Step ID Counting starts from 0 |
| step_name | std::string | Step Name |
| result | bool | Step Result true: success false: failure |
| error_code | int | Error Code When result=true, errorCode=0 When result=false, errorCode is a custom error code |
| extra_params | std::map<std::string, std::string> | Additional Parameters JSON format |
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetReportService().ReportCustomEventStep("eventName", 0, "stepName", true);
GUA_NAMESPACE::GUAReportService::ReportCustomEventStep("eventName", 0, "stepName", true);