Install dependencies with yarn
Start the program with yarn dev
and head to http://localhost:3000/
To connect to Segment, create a new JS source on segment and add the key to analytics.js. In the same file is a custom sample plugin that console logs the payloads autogenerated by https://getanalytics.io/
bootstrapped from next.js/examples/with-segment-analytics