Sha256: 92a7a883fa75bf8c90dbe9216f9a2d021df1ebdec8b9567295b9766af289d24e

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/modules/connectors/analytic/google-analytics.html
 #  Support of analytics provider Google Analytics for J1 Template
 #
 #  Product/Info:
 #  http://jekyll.one
 #
 #  Copyright (C) 2019 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 # Test data:
 #  liquid_var:  {{ liquid_var | debug }}
 # -----------------------------------------------------------------------------
{% endcomment %}

{% comment %} Liquid procedures
-------------------------------------------------------------------------------- {% endcomment %}

{% comment %} Variables
-------------------------------------------------------------------------------- {% endcomment %}
{% assign tracking_id = site.data.j1_config.analytics.google.tracking_id }} %}

{% comment %} Main
-------------------------------------------------------------------------------- {% endcomment %}

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

  gtag('config', '{{tracking_id}}');
</script>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
j1_template-2019.4.4 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1_template-2019.4.1 _includes/themes/j1/modules/connectors/analytic/google-analytics.html