How to Install Segment.io Javascript into a React Web App
Benjamin Hoffman
10612

How is this possibly easier than using the onEnter hook? With onEnter, you write a recordPageview() function once and use it everywhere. You can be 100% positive at a glance that you are tracking pageviews on all routes.

Am I missing something?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.