Custom code in Blocs?

Hi, i have a form. now i would like to track the Send-Button with Google Analytics.
I have to put these code in blocs: <button class=„bloc-button“ type=„submit“ onClick=„gtag(‘event‘, ‘Buchung‘);"> SENDEN

How can i do that? Thanks guys.

Have you tried to put this in the html Widget bric?

Do you mean, i have to embed the code in the form with the html bric? I`m not sure if its work.