![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <AnalyticsProviderLog.h>
Inheritance diagram for FAnalyticsProviderLog:Implementation of the IAnalyticsProviderET interface that exports telemetry events to a file as Newline - delimited JSON By default,the log file is written to Saved/Telemetry folder of the application. FileName and FolderPath can be overridden in the configuration Here as a simple example of how a developer might implement and configure their own analytics provider for use with the StudioTelemerty plugin
| FAnalyticsProviderLog::FAnalyticsProviderLog | ( | const FAnalyticsProviderConfigurationDelegate & | GetConfigValue | ) |
| FAnalyticsProviderLog::~FAnalyticsProviderLog | ( | ) |
|
overridevirtual |
Ends the session. Usually no need to call explicitly, as the provider should do this for you when the instance is destroyed.
Implements IAnalyticsProvider.
|
overridevirtual |
Flush any cached events to the analytics provider.
Note that not all providers support explicitly sending any cached events. In which case this method does nothing.
Implements IAnalyticsProvider.
|
overridevirtual |
Used with GetDefaultEventAttributeCount to iterate over the default attributes.
Range checking is not done, similar to TArray. Use GetDefaultAttributeCount() first!
Implements IAnalyticsProvider.
|
overridevirtual |
Used with GetDefaultAttribute to iterate over the default attributes.
Implements IAnalyticsProvider.
|
overridevirtual |
Implements IAnalyticsProvider.
|
overridevirtual |
Gets the opaque session identifier string for the provider.
Implements IAnalyticsProvider.
|
overridevirtual |
Gset the current UserID. Use -ANALYTICSUSERID=<Name> command line to force the provider to use a specific UserID for this run.
Implements IAnalyticsProvider.
|
overridevirtual |
Records a named event with an array of attributes
| EventName | name of the event |
| Attributes | array of attribute name/value pairs |
Implements IAnalyticsProvider.
|
overridevirtual |
Sets an array of attributes that will automatically be appended to any event that is sent. Logical effect is like adding them to all events before calling RecordEvent. Practically, it is implemented much more efficiently from a storage and allocation perspective.
Implements IAnalyticsProvider.
|
overridevirtual |
Sets the session ID of the analytics session. This is not something you normally have to do, except for circumstances where you need to send events on behalf of another user (like a dedicated server sending events for the connected clients).
Implements IAnalyticsProvider.
|
overridevirtual |
Set the UserID for use with analytics. Some providers require a unique ID to be provided when supplying events, and some providers create their own. If you are using a provider that requires you to supply the ID, use this method to set it.
Implements IAnalyticsProvider.
|
overridevirtual |
Starts a session. See parameterless-version for contract details.
| Attributes | attributes of the session. Arbitrary set of key/value pairs that will be sent with the StartSession event that this should also trigger. |
Implements IAnalyticsProvider.