move script
{% block extrahead %}
{{ super() }}
-{% if pageurl %}
-<!-- Opengraph tags -->
-<meta property="og:url" content="{{ pageurl }}" />
-<meta property="og:type" content="article" />
-<meta property="og:title" content="{% if pagetitle %}{{ pagetitle | e }}{% else %}{{ docstitle | e }}{% endif %}" />
-<meta property="og:description" content="{{ page_description | e }}" />
-{% if logourl %}
-<meta property="og:image" content="{{ logourl }}" />{% endif %}
-
-<meta name="twitter:card" content="summary" />
-
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z9MH3VT85Y"></script>
<script>
gtag('config', 'G-Z9MH3VT85Y');
</script>
+{% if pageurl %}
+<!-- Opengraph tags -->
+<meta property="og:url" content="{{ pageurl }}" />
+<meta property="og:type" content="article" />
+<meta property="og:title" content="{% if pagetitle %}{{ pagetitle | e }}{% else %}{{ docstitle | e }}{% endif %}" />
+<meta property="og:description" content="{{ page_description | e }}" />
+{% if logourl %}
+<meta property="og:image" content="{{ logourl }}" />{% endif %}
+
+<meta name="twitter:card" content="summary" />
{% endif %}
{% endblock %}
