{% if site.google_analitycs %}
  <script>
    var _gaq=[['_setAccount',{{ site.google_analitycs }}],['_trackPageview']];
    (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
    g.src='//www.google-analytics.com/ga.js';
    s.parentNode.insertBefore(g,s)}(document,'script'));
  </script>
{% endif %}

{% if site.google_analitycs %}
  <script>
  (function(j,p,r,e,s,ss){j.GoogleAnalyticsObject=e;j[e]||(j[e]=
  function(){(j[e].q=j[e].q||[]).push(arguments)});j[e].e=+new Date;
  s=p.createElement(r);ss=p.getElementsByTagName(r)[0];
  s.src='//www.google-analytics.com/analytics.js';
  ss.parentNode.insertBefore(s,ss)}(window,document,'script','ga'));
  ga('create','{% site.google_analitycs %}');ga('send','pageview');
  </script>
{% endif %}

Update to Google Universal Analitycs snippet
Update to Google Universal Analitycs snippet
