{% if meta and meta.template %}{% extends meta.template + ".html" %}{% else %}{% extends "!layout.html" %}{% endif -%}

{% block extrahead %}
{% if theme_analytics_id %}
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-53087457-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', '{{ theme_analytics_id }}');
</script>
{% endif %}
{% endblock %}

