GtmOrderHelperMapOrderItems Method |
Maps
OrderItemInfos to list of
GtmData representing Google Tag Manager order item object.
Order items contain products array in given
order and does not contain any order data.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntaxpublic static IEnumerable<GtmData> MapOrderItems(
OrderInfo order,
Object additionalData = null,
string purpose = null
)
Parameters
- order
- Type: CMS.EcommerceOrderInfo
Items of OrderInfo to be mapped to list of Google Tag Manager order item object. - additionalData (Optional)
- Type: SystemObject
Data with additional non-conflicting key value pairs to be merged with each mapped OrderItemInfo. - purpose (Optional)
- Type: SystemString
Contextual information fitting for customizations.
Return Value
Type:
IEnumerableGtmDataThe
GtmData that represents Google Tag Manger order items object.
See Also