add ability to supply user agent to analytics