Click or drag to resize
GtmProductHelperMapSKUInternal Method
Maps SKUInfo to GtmData that represents properties and values of Google Tag Manger product.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax
C#
protected virtual GtmData MapSKUInternal(
	SKUInfo sku,
	Object additionalData = null,
	string purpose = null
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKUInfo to be mapped.
additionalData (Optional)
Type: SystemObject
Data with additional non-conflicting key value pairs to be merged with sku.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: GtmData
The GtmData that represents Google Tag Manger product object.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when sku is null.
Examples

To customize returned gtmData override this method in similar fashion.

base.MapInternal(gtmObject, additionalData, purpose);

gtmData.Add("key", "value");

To customize the whole mapping process do not call base implementation.

See Also