For general GA4 event concepts, see Google Analytics Event Tracking
Google Sites Limitation
Google Sites supports basic GA4 page view tracking via Settings → Analytics (enter your Measurement ID). However, custom event tracking is not possible because Google Sites blocks custom JavaScript. You cannot fire gtag('event', ...) calls.
If you need custom event tracking, migrate to a platform that supports custom code.