record user agent