Navigation
API > API/Plugins > API/Plugins/AnalyticsBlueprintLibrary
| Name | UAnalyticsBlueprintLibrary |
| Type | class |
| Header File | /Engine/Plugins/Runtime/Analytics/AnalyticsBlueprintLibrary/Source/AnalyticsBlueprintLibrary/Classes/AnalyticsBlueprintLibrary.h |
| Include Path | #include "AnalyticsBlueprintLibrary.h" |
Syntax
UCLASS (Meta=(ScriptName="AnalyticsLibrary"))
class UAnalyticsBlueprintLibrary : public UBlueprintFunctionLibrary
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBlueprintFunctionLibrary → UAnalyticsBlueprintLibrary
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UAnalyticsBlueprintLibrary
(
const FObjectInitializer& ObjectInitializer |
AnalyticsBlueprintLibrary.h |
Functions
Public
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void EndSession() |
Ends an analytics session | AnalyticsBlueprintLibrary.h |
|
static void FlushEvents() |
Requests that any cached events be sent immediately | AnalyticsBlueprintLibrary.h |
|
static FString GetSessionId() |
Gets the current session id from the analytics provider | AnalyticsBlueprintLibrary.h |
|
static FString GetUserId() |
Gets the current user id from the analytics provider | AnalyticsBlueprintLibrary.h |
|
static FAnalyticsEventAttr MakeEventAttribute
(
const FString& AttributeName, |
Builds a struct from the attribute name and value | AnalyticsBlueprintLibrary.h |
|
static void RecordCurrencyGiven
(
const FString& GameCurrencyType, |
Records an in-game currency was granted by the game with no real-world money being involved | AnalyticsBlueprintLibrary.h |
|
static void RecordCurrencyGivenWithAttributes
(
const FString& GameCurrencyType, |
Records an in-game currency was granted by the game with no real-world money being involved | AnalyticsBlueprintLibrary.h |
|
static void RecordCurrencyPurchase
(
const FString& GameCurrencyType, |
Records an in-game currency was purchased using real-world money | AnalyticsBlueprintLibrary.h |
|
static void RecordError
(
const FString& Error |
Records an error event has happened | AnalyticsBlueprintLibrary.h |
|
static void RecordErrorWithAttributes
(
const FString& Error, |
Records an error event has happened with attributes | AnalyticsBlueprintLibrary.h |
|
static void RecordEvent
(
const FString& EventName |
Records an event has happened by name without any attributes (an event counter) | AnalyticsBlueprintLibrary.h |
|
static void RecordEventWithAttribute
(
const FString& EventName, |
Records an event has happened by name with a single attribute | AnalyticsBlueprintLibrary.h |
|
static void RecordEventWithAttributes
(
const FString& EventName, |
Records an event has happened by name with a single attribute | AnalyticsBlueprintLibrary.h |
|
static void RecordItemPurchase
(
const FString& ItemId, |
Records an in-game item was purchased using the specified in-game currency | AnalyticsBlueprintLibrary.h |
|
static void RecordProgress
(
const FString& ProgressType, |
Records a user progress event has happened | AnalyticsBlueprintLibrary.h |
|
static void RecordProgressWithAttributes
(
const FString& ProgressType, |
Records a user progress event has happened with attributes | AnalyticsBlueprintLibrary.h |
|
static void RecordProgressWithFullHierarchyAndAttributes
(
const FString& ProgressType, |
Records a user progress event has happened with a full list of progress hierarchy names and with attributes | AnalyticsBlueprintLibrary.h |
|
static void RecordSimpleCurrencyPurchase
(
const FString& GameCurrencyType, |
Records an in-game currency was purchased using real-world money | AnalyticsBlueprintLibrary.h |
|
static void RecordSimpleCurrencyPurchaseWithAttributes
(
const FString& GameCurrencyType, |
Records an in-game currency was purchased using real-world money | AnalyticsBlueprintLibrary.h |
|
static void RecordSimpleItemPurchase
(
const FString& ItemId, |
Records an in-game item was purchased | AnalyticsBlueprintLibrary.h |
|
static void RecordSimpleItemPurchaseWithAttributes
(
const FString& ItemId, |
Records an in-game item was purchased with attributes | AnalyticsBlueprintLibrary.h |
|
static void SetAge
(
int32 Age |
Sets the user's age (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static void SetBuildInfo
(
const FString& BuildInfo |
Sets the game's build info (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static void SetGender
(
const FString& Gender |
Sets the user's gender (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static void SetLocation
(
const FString& Location |
Sets the user's location (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static void SetSessionId
(
const FString& SessionId |
Sets the session id (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static void SetUserId
(
const FString& UserId |
Sets the user id (if supported) on the analytics provider | AnalyticsBlueprintLibrary.h |
|
static bool StartSession() |
Starts an analytics session without any custom attributes specified | AnalyticsBlueprintLibrary.h |
|
static bool StartSessionWithAttributes
(
const TArray< FAnalyticsEventAttr >& Attributes |
Starts an analytics session with custom attributes specified | AnalyticsBlueprintLibrary.h |
|