added segment.io analytics tracking