initialized segmentio js snippet and added google analytics context