Google Analytics Measurement Protocol 1.2.2
Google Analytics plugin for Unreal Engine, using a native cross-platform implementation of the Measurement Protocol.
|
Settings for the Google Analytics Measurement Protocol plugin. More...
#include <GAMPSettings.h>
Public Member Functions | |
bool | IsGAMPDefaultProvider () const |
Returns true if GAMP is configured as the default analytics provider, false otherwise. More... | |
void | SetupGAMPAsDefaultProvider () const |
Setup the GAMP as the default analytics provider. More... | |
UGoogleAnalyticsMPSettings () | |
constructor More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="CPU Brand (+)")) FString CPUBrandCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the running CPU Brand to events (as returned by FPlatformMisc::GetCPUBrand() ). More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="GPU Brand (+)")) FString GPUBrandCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the running GPU Brand to events (as returned by FPlatformMisc::GetPrimaryGPUBrand() ). More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="OS Version (++)")) FString OSVersionCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the running OS Version to events (as returned by FPlatformMisc::GetOSVersion() ). More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="Platform Name (++)")) FString PlatformNameCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the running Platform Name to events (as returned by FPlatformProperties::IniPlatformName() ). More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="Project Name (+)")) FString ProjectNameCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the Project Name to events. More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="Project Version (++)")) FString ProjectVersionCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add the ProjectVersion to events. More... | |
UPROPERTY (config, EditAnywhere, Category="Runtime Settings|Automatic Event Dimensions", meta=(DisplayName="System Message (++)")) FString SystemMessageCustomDimension | |
If set, this Custom Dimension is used by the plugin to automatically add useful messages to some events (e.g the message of an error/exception). More... | |
UPROPERTY (EditAnywhere, Category="Build Configuration Settings", meta=(DisplayName="PIE (Play-In-Editor)", FullyExpand=true)) FGoogleAnalyticsMPBuildSettings PIEConfiguration | |
Settings for PIE (Play In Editor). More... | |
Public Attributes | |
TSubclassOf< class UGoogleAnalyticsMPAttributesFilter > | AttributesFilterClass = nullptr |
Optional class to manipulate the set of attributes sent with each logged event. More... | |
bool | bAutoInstrumentation = true |
Auto-instrumentation of the game/application (see the doc to know more about what is instrumented). More... | |
bool | bAutoSessionHandling = true |
Automatically start the analytics session when the application starts and close it when the application ends. More... | |
bool | bDebugEndpointEnabled = false |
Enable the auxiliary debug features for the selected protocol. More... | |
bool | bOptOutDefault = false |
The initial default value of the "opt-out" property. More... | |
bool | bPersistentUserID = true |
Save any set User ID in the persistent storage. More... | |
FString | BuildInfoCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the Build Info to events (as set by IAnalyticsProvider::SetBuildInfo() ). More... | |
FGoogleAnalyticsMPBuildSettings | DebugConfiguration |
Settings for the Debug build configuration. More... | |
FGoogleAnalyticsMPBuildSettings | DevelopmentConfiguration |
Settings for the Development build configuration. More... | |
FString | EventLabelCustomDimension |
If set, this Custom Dimension is used by the plugin as a generic event "label" for some events used by IAnalyticsProvider. More... | |
FString | EventValueCustomMetric |
If set, this Custom Metric is used by the plugin as a generic event "value" for some events used by IAnalyticsProvider. More... | |
float | KeepAliveTimeInMinutes = 10 |
Ensure proper session duration tracking, sending a "keep alive" event to the backend every X minutes. More... | |
FString | ProjectIDCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the ProjectID to events. More... | |
FGoogleAnalyticsMPBuildSettings | ReleaseConfiguration |
Settings for the Release build configuration. More... | |
FGoogleAnalyticsMPBuildSettings | TestConfiguration |
Settings for the Test build configuration. More... | |
FString | UserBirthyearCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the User Birth of Year to events. More... | |
FString | UserGenderCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the User Gender to events. More... | |
Protected Member Functions | |
virtual void | ReadConfigSettings () override |
Provides a mechanism to read the section based information into this UObject's properties. More... | |
virtual void | WriteConfigSettings () override |
Provides a mechanism to save this object's properties to the section based ini values. More... | |
Settings for the Google Analytics Measurement Protocol plugin.
UGoogleAnalyticsMPSettings::UGoogleAnalyticsMPSettings | ( | ) |
constructor
bool UGoogleAnalyticsMPSettings::IsGAMPDefaultProvider | ( | ) | const |
Returns true if GAMP is configured as the default analytics provider, false otherwise.
|
overrideprotectedvirtual |
Provides a mechanism to read the section based information into this UObject's properties.
void UGoogleAnalyticsMPSettings::SetupGAMPAsDefaultProvider | ( | ) | const |
Setup the GAMP as the default analytics provider.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="CPU Brand (+)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the running CPU Brand to events (as returned by FPlatformMisc::GetCPUBrand()
).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="GPU Brand (+)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the running GPU Brand to events (as returned by FPlatformMisc::GetPrimaryGPUBrand()
).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="OS Version (++)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the running OS Version to events (as returned by FPlatformMisc::GetOSVersion()
).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. We suggest to configure this option.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="Platform Name (++)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the running Platform Name to events (as returned by FPlatformProperties::IniPlatformName()
).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. We suggest to configure this option.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="Project Name (+)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the Project Name to events.
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. If multiple products send data to the same analytics property, then we suggest to configure this option.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="Project Version (++)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add the ProjectVersion to events.
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. We suggest to configure this option.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | config | , |
EditAnywhere | , | ||
Category | = "Runtime Settings|Automatic Event Dimensions" , |
||
meta | = (DisplayName="System Message (++)") |
||
) |
If set, this Custom Dimension is used by the plugin to automatically add useful messages to some events (e.g the message of an error/exception).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. We suggest to configure this option.
UGoogleAnalyticsMPSettings::UPROPERTY | ( | EditAnywhere | , |
Category | = "Build Configuration Settings" , |
||
meta | = (DisplayName="PIE (Play-In-Editor)", FullyExpand=true) |
||
) |
Settings for PIE (Play In Editor).
|
overrideprotectedvirtual |
Provides a mechanism to save this object's properties to the section based ini values.
TSubclassOf<class UGoogleAnalyticsMPAttributesFilter> UGoogleAnalyticsMPSettings::AttributesFilterClass = nullptr |
Optional class to manipulate the set of attributes sent with each logged event.
A custom filter can be used, for example, to add Custom Dimensions and Metrics to each logged event.
bool UGoogleAnalyticsMPSettings::bAutoInstrumentation = true |
Auto-instrumentation of the game/application (see the doc to know more about what is instrumented).
bool UGoogleAnalyticsMPSettings::bAutoSessionHandling = true |
Automatically start the analytics session when the application starts and close it when the application ends.
If false, you must manage the session duration manually calling the methods UGoogleAnalyticsMPStatics::StartSession() and UGoogleAnalyticsMPStatics::EndSession().
bool UGoogleAnalyticsMPSettings::bDebugEndpointEnabled = false |
Enable the auxiliary debug features for the selected protocol.
This feature is automatically disabled in Shipping build configuration.
For all protocols:
For Universal protocol:
bool UGoogleAnalyticsMPSettings::bOptOutDefault = false |
The initial default value of the "opt-out" property.
If true, no data to Google Analytics are sent and calls to log events are silently ignored.
bool UGoogleAnalyticsMPSettings::bPersistentUserID = true |
Save any set User ID in the persistent storage.
Note that Google suggest to set this to false. If false, you must provide the User ID at every launch of the application calling the method. UGoogleAnalyticsMPStatics::SetUserID().
FString UGoogleAnalyticsMPSettings::BuildInfoCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the Build Info to events (as set by IAnalyticsProvider::SetBuildInfo()
).
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details.
FGoogleAnalyticsMPBuildSettings UGoogleAnalyticsMPSettings::DebugConfiguration |
Settings for the Debug build configuration.
FGoogleAnalyticsMPBuildSettings UGoogleAnalyticsMPSettings::DevelopmentConfiguration |
Settings for the Development build configuration.
FString UGoogleAnalyticsMPSettings::EventLabelCustomDimension |
If set, this Custom Dimension is used by the plugin as a generic event "label" for some events used by IAnalyticsProvider.
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. If you use the IAnalyticsProvider, then we suggest to configure this option.
FString UGoogleAnalyticsMPSettings::EventValueCustomMetric |
If set, this Custom Metric is used by the plugin as a generic event "value" for some events used by IAnalyticsProvider.
You have to configure a proper Custom Metric (Event scope, Standard unit of measurement) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details. If you use the IAnalyticsProvider, then we suggest to configure this option.
float UGoogleAnalyticsMPSettings::KeepAliveTimeInMinutes = 10 |
Ensure proper session duration tracking, sending a "keep alive" event to the backend every X minutes.
Set to zero to disable this feature.
FString UGoogleAnalyticsMPSettings::ProjectIDCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the ProjectID to events.
You have to configure a proper Custom Dimension (Event scope) in your backend and copy and paste here what you have set in the Event Parameter name. See https://support.google.com/analytics/answer/14240153?hl=en for details.
FGoogleAnalyticsMPBuildSettings UGoogleAnalyticsMPSettings::ReleaseConfiguration |
Settings for the Release build configuration.
FGoogleAnalyticsMPBuildSettings UGoogleAnalyticsMPSettings::TestConfiguration |
Settings for the Test build configuration.
FString UGoogleAnalyticsMPSettings::UserBirthyearCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the User Birth of Year to events.
You have to configure a proper Custom Dimension (User scope) in your backend and copy and paste here what you have set in the User Property name. See https://support.google.com/analytics/answer/14240153?hl=en for details.
FString UGoogleAnalyticsMPSettings::UserGenderCustomDimension |
If set, this Custom Dimension is used by the plugin to automatically add the User Gender to events.
You have to configure a proper Custom Dimension (User scope) in your backend and copy and paste here what you have set in the User Property name. See https://support.google.com/analytics/answer/14240153?hl=en for details.