How can I activate a GoogleTag when the contact form get submitted?

Hello and thank you to anyone who wants to help me. The issue is this, since the programming language used on Shopify in the .liquid formats is not familiar to me, I don’t understand why in a piece of code like this I can’t activate a JavaScript listener able to ‘trigger’ the GTag function when the contact form on the product page (of any product) is submitted. What am I doing wrong? Interested website section here.