added analytics tracking from segment.io