E-Commerce Value Custom Variable Template for Google Tag Manager Calculates value for e-commerce items or products array using price, discount, quantity Usage Define a UA products array or GA4 ecommerce items. Result will be a float value with two decimals.