Hi Daniel!
I've followed the book closely and the app is working great (https://sr-learn-rails.herokuapp.com/).
When I installed the analytics feature through segment.io (Ch. 26) I noticed a strange behavior on my segment debugger dashboard:
Whenever a form event is triggered (sign up or contact request) the user is redirected to the root (as intended) but the page is loaded 3 times. The same behavior happens when you load the app using the URL (not the nav links).
I attached a screenshot of my segment dashboard to give you some context.
Any idea why this is happening?
Note: The console.log line you wrote in the segmentio.js file is also printed 2 times when an event is triggered.
