Skip to content

Get the Subtotal value in checkout page in PWA React

We are using PWA Venia Reactjs setup. We need to get the subtotal value in this page : src/components/CheckoutPage/checkoutPage.js

const checkoutMeta = () => {
fbq('track', 'InitiateCheckout', {
'value': total?.value,
'currency': total.currency
});
}

i tried above code and i can not able to get subtotal value in checkout page