Added analytics to segment.io