Add segment.io analytics

I assume all that is some sort of magic you have to do to set up analytics...but since probably other maintainers won't be familiar with segment.io analytics, it would be helpful for comments to unpack at least some of the things we're more likely to want to change. For example, does some part of it control which events are logged? Is it all boilerplate, or are there parts we might plausibly change?