Module |
|
Header |
/Engine/Source/Runtime/Analytics/AnalyticsET/Public/IAnalyticsProviderET.h |
Include |
#include "IAnalyticsProviderET.h" |
void RecordEventJson
(
FString EventName,
TArray< FAnalyticsEventAttribute > && AttributesJson
)
Sends an event where each attribute value is expected to be a string-ified Json value. Meaning, each attribute value can be an integer, float, bool, string, arbitrarily complex Json array, or arbitrarily complex Json object.
The main thing to remember is that if you pass a Json string as an attribute value, it is up to you to quote the string, as the string you pass is expected to be able to be pasted directly into a Json value. ie:
{ "EventName": "MyStringEvent", "IntAttr": 42 < You simply pass this in as "42" "StringAttr": "SomeString" < You must pass SomeString as "\"SomeString"" }
Parameter |
Description |
---|---|
EventName |
The name of the event. |
AttributesJson |
array of key/value attribute pairs where each value is a Json value (pure Json strings mustbe quoted by the caller). |