GtmOrderHelper.MapPurchaseInternal Method |
Maps
OrderInfo to
GtmData representing Google Tag Manager purchase.
Purchase consists of order and its items.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntaxprotected virtual GtmData MapPurchaseInternal(
OrderInfo order,
Object additionalData = null,
string purpose = null
)
Parameters
- order
- Type: CMS.Ecommerce.OrderInfo
OrderInfo to be mapped to be mapped to Google Tag Manager purchase object. - additionalData (Optional)
- Type: System.Object
Data with additional non-conflicting key value pairs to be merged resulting GtmData object. - purpose (Optional)
- Type: System.String
Contextual information fitting for customizations.
Return Value
Type:
GtmDataThe
GtmData that represents Google Tag Manger purchase object.
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown when order is null. |
See Also