summaryrefslogtreecommitdiff
path: root/_includes/head/custom.html
blob: def324f71c305d53f2cb59b7040938a47aa68556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!-- start custom head snippets -->

{% if site.google_analytics and jekyll.environment == 'production' %}
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
  <script>
    window.dataLayer = window.dataLayer || [];
    function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());

    gtag('config', '{{ site.google_analytics }}');
  </script>
{%- endif -%}

<!-- end custom head snippets -->