Implement segment.io snippet