Set user agent on analytics request