setting Segment to the user agent