<!DOCTYPE html>
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ site.title }} / {{ page.title }}</title>

    {% include styles.liquid %}

    <!-- metadata -->
    <meta name="og:title" content="{{ site.title }} / {{page.title}}"/>
    <meta name="og:image" content="{{ site.baseurl }}/images/{{ site.logo }}"/>
    <meta name="og:description" content="{{ site.description }}"/>
  </head>
  <body class="{{ page.bodyclass }}" id="top_of_page">
{% if page.tocDepth %}
    <span id="toc-depth" data-toc-depth="{{ page.tocDepth }}"></span>
{% else %}
    <span id="toc-depth" data-toc-depth="h2,h3"></span>
{% endif %}

    {% include nav.html %}
    {{ content }}
    <div class="page-spacer"></div>
    {% include footer.html %}

    {% include end-of-page-styles.liquid %}

    {% if site.analytics.id %}
    {% include analytics.liquid %}
    {% endif %}
  </body>
</html>


Move Google Analytics code to the top of the page to adhere to current recommendations.
<!DOCTYPE html>
<html lang="en" itemscope itemtype="https://schema.org/WebPage">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ site.title }} / {{ page.title }}</title>

    {% include styles.liquid %}

    <!-- metadata -->
    <meta name="og:title" content="{{ site.title }} / {{page.title}}"/>
    <meta name="og:image" content="{{ site.baseurl }}/images/{{ site.logo }}"/>
    <meta name="og:description" content="{{ site.description }}"/>

    {% if site.analytics.id %}
    {% include analytics.liquid %}
    {% endif %}
  </head>
  <body class="{{ page.bodyclass }}" id="top_of_page">
{% if page.tocDepth %}
    <span id="toc-depth" data-toc-depth="{{ page.tocDepth }}"></span>
{% else %}
    <span id="toc-depth" data-toc-depth="h2,h3"></span>
{% endif %}

    {% include nav.html %}
    {{ content }}
    <div class="page-spacer"></div>
    {% include footer.html %}

    {% include end-of-page-styles.liquid %}
  </body>
</html>