Sha256: a69f13c04fed7e5763a9b1c18219d7ec8d96edc94c094e83e54f3e425b88b3f7

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

{% unless page.redirect %}
  {% if site.google_analytics %}
    <script>
      window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
      {% if site.hydejack.cookies_banner %}
        if (navigator.CookiesOK) {
          ga('create', '{{ site.google_analytics }}', 'auto');
        } else if (localStorage && localStorage.getItem('hy:cookiesOK')) {
          ga('create', '{{ site.google_analytics }}', {
            'storage': 'none',
            'clientId': localStorage.getItem('ga:clientId')
          });
        } else {
          ga('create', '{{ site.google_analytics }}', {
            'storage': 'none'
          });
          ga('set', 'forceSSL', true);
          ga('set', 'anonymizeIp', true);
        }
      {% else %}
        ga('create', '{{ site.google_analytics }}', 'auto');
      {% endif %}
      ga('send', 'pageview');
      loadJSDeferred('https://www.google-analytics.com/analytics.js');
    </script>
  {% endif %}

  <!--[if gt IE 9]><!---->
  {% capture js_url %}{% link assets/js/hydejack-7.5.0.js %}{% endcapture %}
  <script>loadJSDeferred('{{ js_url | relative_url }}');</script>
  {% include my-scripts.html %}
  <!--<![endif]-->
{% endunless %}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-theme-hydejack-7.5.0 _includes/scripts.html