We use jitsu to track events from Browser (HTML), NPM, and React applications. The guide at https://docs.jitsu.com/sending-data/ will help you get started.

Jitsu api endpoint for docker installations is at http://localhost:3100 .