Add user agent

I faced with an unwanted effect when rendering a static version of the site. When GoogleBot request a page the web application proxies the request to a prerender. Prerender renders static html and executes javascript(include google analytics). This behavior can disrupt the accuracy of statistics if site has many pages.

As workaround, I suggest to parse user agent and do not insert google analytics script for a prerender.