Not tracking events

I’m testing my site from a localhost frontend.

Page visits and search queries shows up in the reports, but my trackEvent calls doesn’t seem to be recorded.

Since visits and queries are recorded I’m assuming the piwik installation is configured correctly, but maybe I’m missing some setting.

Maybe you can debug the tracker to see what’s wrong with the event tracking? Tracking HTTP API: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3