added segment.io tracking