Feature/44 segmentio tracking

Added segment.io tracking to all the things we discussed, need a code review.