GtmDataHelperSerializeToJsonInternal Method (GtmData, String) |
Namespace: CMS.Ecommerce
protected virtual string SerializeToJsonInternal( GtmData gtmData, string purpose = null )
To customize gtmData before serialization, override this method in similar fashion.
gtmData.Add("key", "value");
base.SerializeInternal(gtmObject, purpose);
To customize the whole serialization process do not call base implementation and implement custom gtmData serialization.