Added segment.io script for analytics