You have wrong signature for the gtag send event call.
Your GA code works (under the update section).
You don't end debugging your implementation on real time reports. You go further:
Put away GTM.
Open your devtools, then the console and the network tab.
Execute your code in ...