EcommerceTransformationFunctionsGetGtmProductJson Method (SKUInfo, Object, String) |
Generates Google Tag Manager product object in JSON format for given sku.
Namespace: CMS.Ecommerce.Web.UIAssembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 11.0.0
Syntax 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:
StringSee Also