Click or drag to resize
EcommerceTransformationFunctionsGetGtmProductJson Method (SKUInfo, Object, String)
Generates Google Tag Manager product object in JSON format for given sku.

Namespace: CMS.Ecommerce.Web.UI
Assembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 11.0.0
Syntax
C#
public static string GetGtmProductJson(
	SKUInfo sku,
	Object additionalData = null,
	string purpose = null
)

Parameters

sku
Type: CMS.EcommerceSKUInfo
SKUInfo for which Google Tag Manager product object JSON is to be generated.
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: String
See Also