Sha256: e6ba46e39d44150a636e1ad81074f651088debd21eb62a317b1c3b66a3e996a5

Contents?: true

Size: 1.43 KB

Versions: 17

Compression:

Stored size: 1.43 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) 2021 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 %}

<!-- Google Analytics: provide global site tag (gtag.js) -->
<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

17 entries across 17 versions & 1 rubygems

Version Path
j1-template-2021.1.0 _includes/themes/j1/modules/connectors/analytic/google-analytics-legacy.html
j1-template-2021.0.16 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.15 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.14 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.13 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.12 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.11 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.10 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.9 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.8 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.7 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.6 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.5 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.4 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.3 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.2 _includes/themes/j1/modules/connectors/analytic/google-analytics.html
j1-template-2021.0.1 _includes/themes/j1/modules/connectors/analytic/google-analytics.html