Use Segment.io and extract analytics to partial