added analytics and performed optimizations based on google's pagespeed