IAnalyticsProviderET::RecordEventJson

Sends an event where each attribute value is expected to be a string-ified Json value.

Windows
MacOS
Linux

References

Module

AnalyticsET

Header

/Engine/Source/Runtime/Analytics/AnalyticsET/Public/IAnalyticsProviderET.h

Include

#include "IAnalyticsProviderET.h"

Syntax

void RecordEventJson
(
    FString EventName,
    TArray< FAnalyticsEventAttribute > && AttributesJson
)

Remarks

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"" }

Parameters

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).

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss