I am facing a challenge with the click trigger in Google Tag Manager. The trigger is set to fire when clicking on an element with the CSS selector button[name=checkout]. However, it does not work for spans inside the button tag. Any suggestions on how to resolve this issue?
<button type="submit" name="checkout" class="Cart__Checkout Button Button--primary Button--full">
<span>Zum Checkout</span>
<span class="Button__SeparatorDot"></span>
<span>99,95 €</span>
</button>
Thank you!