Sha256: f3f6e35f48befc9de5264e2f48bbb652928a15eb94d333d2be0c8605b8f74215

Contents?: true

Size: 760 Bytes

Versions: 2

Compression:

Stored size: 760 Bytes

Contents

{% if site.production %}
    {% assign analytics_code = site.data.settings.google_analytics.production %}
{% elsif site.production == false %}
    {% assign analytics_code = site.data.settings.google_analytics.staging %}
{% else %}
    {% assign analytics_code = site.data.settings.google_analytics.production %}
{% endif %}
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', '{{analytics_code}}', 'auto');
  ga('send', 'pageview');
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jumbo-jekyll-theme-5.6.9.4 _includes/google-analytics.html
jumbo-jekyll-theme-5.6.9.3 _includes/google-analytics.html