Home
Starting Up
Case Studies DB
Products
Ideas DB
Vibe Coding Tools
Subscribe to IH+
Starting Up
Case Studies
Ideas DB
Products DB
Join
3
Likes
1
Comment
How to instrument Amplitude or Segment on a React app for tracking user behaviour?
by
John Kueh
Anyone done this recently? Which library did you use?
At the risk of stating the obvious, Segment has docs for integrating in a React app, and while I've never worked with React specifically, the walkthrough looks very straightforward to me:
https://github.com/segmentio/analytics-react
As someone who integrates analytics for a day job, I'll endorse their approach to measurement: get the library in first, then the pages, then the user interactions, then the errors.
I'd also recommend integrating Segment first and using that to pipe to Amplitude (and eventually other tools or pixels).