Google Analytics Measurement Protocol 1.2.2
Google Analytics plugin for Unreal Engine, using a native cross-platform implementation of the Measurement Protocol.
|
Information for an economic transaction, consisting of the purchase of one or more items. More...
#include <GAMPPurchaseInfo.h>
Public Member Functions | |
FGoogleAnalyticsMPPurchaseInfo () | |
Default constructor. More... | |
FGoogleAnalyticsMPPurchaseInfo (const FString &InTransactionId, const TArray< FGoogleAnalyticsMPPurchaseItemInfo > &InItems, const FString &InCurrency, const TMap< FString, FString > &InAttributes) | |
Construct a transaction with a known Transaction ID. More... | |
FGoogleAnalyticsMPPurchaseInfo (const TArray< FGoogleAnalyticsMPPurchaseItemInfo > &InItems, const FString &InCurrency, const TMap< FString, FString > &InAttributes) | |
Construct a transaction with an undefined Transaction ID (an proper unique value will be logged for it). More... | |
float | GetTotalValue () const |
Return the total price of the purchased items. More... | |
Public Attributes | |
FString | Affiliation |
A product affiliation to designate a supplying company or brick and mortar store location. More... | |
TMap< FString, FString > | Attributes |
Optional auxiliary Google Analytics Measurement Protocol attributes sent with the corresponding "transaction". More... | |
FString | Currency |
Currency used in the transaction (3-letter ISO 4217 alphabetic code format). More... | |
TArray< FGoogleAnalyticsMPPurchaseItemInfo > | Items |
The purchased items. More... | |
FString | TransactionId |
Unique Transaction ID (if empty, a new UUID will be generated automatically). More... | |
Information for an economic transaction, consisting of the purchase of one or more items.
|
inline |
Default constructor.
|
inline |
Construct a transaction with an undefined Transaction ID (an proper unique value will be logged for it).
InItems | Purchased items in the transaction. |
InCurrency | The currency used in the transaction (3-letter ISO 4217 alphabetic code format) |
InAttributes | Optional auxiliary Google Analytics Measurement Protocol attributes sent with the corresponding "transaction" ( for GA4 see https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag; for UA see https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters). |
|
inline |
Construct a transaction with a known Transaction ID.
If you don't have a known Transaction ID, use the constructor with no Transaction ID parameter.
InTransactionId | Unique Transaction ID as reported by the used transaction system. For GA4 see transaction_id at https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#purchase; for UA see ti at https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters#ti. |
InItems | Purchased items in the transaction. |
InCurrency | The currency used in the transaction (3-letter ISO 4217 alphabetic code format) |
InAttributes | Optional auxiliary Google Analytics Measurement Protocol attributes sent with the corresponding "transaction". For GA4 see https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag; for UA see https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters. |
|
inline |
Return the total price of the purchased items.
FString FGoogleAnalyticsMPPurchaseInfo::Affiliation |
A product affiliation to designate a supplying company or brick and mortar store location.
TMap<FString, FString> FGoogleAnalyticsMPPurchaseInfo::Attributes |
Optional auxiliary Google Analytics Measurement Protocol attributes sent with the corresponding "transaction".
FString FGoogleAnalyticsMPPurchaseInfo::Currency |
Currency used in the transaction (3-letter ISO 4217 alphabetic code format).
TArray<FGoogleAnalyticsMPPurchaseItemInfo> FGoogleAnalyticsMPPurchaseInfo::Items |
The purchased items.
FString FGoogleAnalyticsMPPurchaseInfo::TransactionId |
Unique Transaction ID (if empty, a new UUID will be generated automatically).