Adding segment.io tracking code