Google Analytics Measurement Protocol 1.2.2
Google Analytics plugin for Unreal Engine, using a native cross-platform implementation of the Measurement Protocol.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
FGoogleAnalyticsMPPurchaseItemInfo Struct Reference

Information for a purchased item. More...

#include <GAMPPurchaseInfo.h>

Public Member Functions

 FGoogleAnalyticsMPPurchaseItemInfo ()
 Default constructor. More...
 
 FGoogleAnalyticsMPPurchaseItemInfo (const FString &InItemId, float InItemPrice, int32 InItemQuantity, const TMap< FString, FString > &InAttributes)
 Construct a purchased item. More...
 
float GetTotalValue () const
 Return the total price of the purchased quantity. More...
 

Public Attributes

TMap< FString, FString > Attributes
 Optional auxiliary Google Analytics attributes sent with the corresponding "item". More...
 
FString ItemId
 Item ID/name (required, can't be empty) More...
 
float ItemPrice
 Unitary item price (the real-value monetary price of the single item, in units of the currency specified by the owning FGoogleAnalyticsMPPurchaseInfo) More...
 
int32 ItemQuantity
 The number of items purchased. More...
 

Detailed Description

Information for a purchased item.

Constructor & Destructor Documentation

◆ FGoogleAnalyticsMPPurchaseItemInfo() [1/2]

FGoogleAnalyticsMPPurchaseItemInfo::FGoogleAnalyticsMPPurchaseItemInfo ( )
inline

Default constructor.

◆ FGoogleAnalyticsMPPurchaseItemInfo() [2/2]

FGoogleAnalyticsMPPurchaseItemInfo::FGoogleAnalyticsMPPurchaseItemInfo ( const FString &  InItemId,
float  InItemPrice,
int32  InItemQuantity,
const TMap< FString, FString > &  InAttributes 
)
inline

Construct a purchased item.

Parameters
InItemIdItem ID/name (required, can't be empty)
InItemPriceItem price (the real-value monetary price of the single item, in units of the currency specified by the owning FGoogleAnalyticsMPPurchaseInfo)
InItemQuantityThe number of items purchased.
InAttributesOptional auxiliary Google Analytics Measurement Protocol attributes sent with the corresponding "item". See: for GA4 https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag, for UA https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters.

Member Function Documentation

◆ GetTotalValue()

float FGoogleAnalyticsMPPurchaseItemInfo::GetTotalValue ( ) const
inline

Return the total price of the purchased quantity.

Member Data Documentation

◆ Attributes

TMap<FString, FString> FGoogleAnalyticsMPPurchaseItemInfo::Attributes

◆ ItemId

FString FGoogleAnalyticsMPPurchaseItemInfo::ItemId

Item ID/name (required, can't be empty)

◆ ItemPrice

float FGoogleAnalyticsMPPurchaseItemInfo::ItemPrice

Unitary item price (the real-value monetary price of the single item, in units of the currency specified by the owning FGoogleAnalyticsMPPurchaseInfo)

◆ ItemQuantity

int32 FGoogleAnalyticsMPPurchaseItemInfo::ItemQuantity

The number of items purchased.


The documentation for this struct was generated from the following file: