I’ve created Google Tag Manager and Google Analytics process to capture the Form Name in an Event across the site. For WooCommerce, there’s no form name on an Add To Cart form, though. Here’s what it looks like:
<form class="cart" action="[PRODUCT URL]" method="post" enctype="multipart/form-data">
I’d like to update that line of code to:
<form class="cart" action="[PRODUCT URL]" name="Add [PRODUCT NAME] To Cart" method="post" enctype="multipart/form-data">
I can’t find the form anywhere in the WooCommerce templates within the theme to modify the form name, though. Is there a filter that can be applied?