For universal debugging steps, see Global Events Not Firing Guide
Google Sites Does Not Support Custom Tracking
Google Sites blocks all custom JavaScript. GTM, Meta Pixel, and custom GA4 events cannot fire on Google Sites. The only tracking available is native Google Analytics page views via Settings → Analytics.
If you need event tracking, migrate to a platform that supports custom code.