GtmProductHelperMapSKUInternal Method |
Maps
SKUInfo to
GtmData that represents properties and values of Google Tag Manger product.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 13.0.131
Syntax 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:
GtmDataThe
GtmData that represents Google Tag Manger product object.
Exceptions Exception | Condition |
---|
ArgumentNullException | Thrown 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