3
1 Comment

How to instrument Amplitude or Segment on a React app for tracking user behaviour?

Anyone done this recently? Which library did you use?

on November 11, 2019
  1. 1

    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).