segment.io snippet