Zend certified PHP/Magento developer

Checkout parameters not passing to google analytics dashboard

We used below code in Magento PWA venia setup to pass the checkout values to Google analytics dashbaord.

const proceedToCheckoutButton = !isCheckout ? (
        <div
            
        >
            <Button
                disabled={isPriceUpdating}
                priority={'high'}
                onClick={() => {
                    handleProceedToCheckout();
                    GTMEventTrigger({ route: window.location.pathname, 
                    
                    event('proceed_checkout', {
                        "total_items" : cartItems?.length,
                        "amount" : total?.value,
                        "Currency" : total.currency,
                        "items" : allCartItems
                    })
                    
                    
                    title: document.title })
                    
                }}
                data-cy="PriceSummary-checkoutButton"
            >
                <FormattedMessage
                    id={'priceSummary.checkoutButton1'}
                    defaultMessage={'PROCEED TO CHECKOUT'}
                />
            </Button>
        </div>
    ) : null;

Result :

It is firing the event “checkout” in google analytics, but values like total amount, items are not passing to google analytics dashboard.

here is full code : https://pastebin.com/5pPuRgmh