Add analytics to site

This adds analytics to the site when it's running in production mode.