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

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(
	int skuId,
	Object additionalData = null,
	string purpose = null
)

Parameters

skuId
Type: SystemInt32
ID of 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 properties of SKUInfo.
purpose (Optional)
Type: SystemString
Contextual information fitting for customizations.

Return Value

Type: String
See Also