Eliminate render blocking of Google Analytics

I have just tested my website on Google’s PageSpeed Insights and it says I need to Remove render-blocking JavaScript of my https://www.WEBSITE.com/google_analytics_auto.js file, which when opened looks like

 var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'ACCOUNT NUMBER-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

I am not sure what I need to do in order to remove the render blocking, any thoughts please?

Article source: https://www.sitepoint.com/community/t/eliminate-render-blocking-of-google-analytics/291084

Related Posts