Click or drag to resize
GtmOrderHelperMapPurchase Method
Maps OrderInfo to GtmData representing Google Tag Manager purchase. Purchase consists of order and its items.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax
C#
public static GtmData MapPurchase(
	OrderInfo order,
	Object additionalData = null,
	string purpose = null
)

Parameters

order
Type: CMS.EcommerceOrderInfo
OrderInfo to be mapped to Google Tag Manager purchase object.
additionalData (Optional)
Type: SystemObject
Data with additional non-conflicting key value pairs to be merged resulting GtmData object.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: GtmData
The GtmData that represents Google Tag Manger purchase object.
See Also