Sha256: 24ed82aa68e451bc81bbc63eaf410a974047770634225c2b0c3072490a2cb2f9

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/_includes/themes/j1/modules/connectors/analytics
 #  Liquid CONNECTOR for analytic providers supported by J1 Template
 #
 #  Product/Info:
 #  http://jekyll.one
 #
 #  Copyright (C) 2020 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 analytics           = site.data.j1_config.analytics.enabled %}
{% assign analytics_provider  = site.data.j1_config.analytics.provider %}


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

<!-- [INFO   ] [j1.modules.connectors.analytics       ] [ start processing load region head, layout: {{page.layout}} ] -->              
{% if analytics and page.analytics %}

  {% case analytics_provider %}
    {% when "google" %}
      <!-- [INFO   ] [j1.modules.connectors.analytics       ] [ place Google Analytics ] -->
      {% include themes/{{site.template.name}}/modules/connectors/analytic/google-analytics.html %}
    {% when "custom" %}
      <!-- [INFO   ] [j1.modules.connectors.analytics       ] [ place Custom Provider ] -->
      {% include themes/{{site.template.name}}/modules/connectors/analytic/custom-analytics.html %}
  {% endcase %}

{% endif %}
<!-- [INFO   ] [j1.modules.connectors.analytics       ] [ end processing ] -->

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
j1-template-2021.0.0 _includes/themes/j1/modules/connectors/analytics
j1-template-2020.0.25 _includes/themes/j1/modules/connectors/analytics
j1-template-2020.0.24 _includes/themes/j1/modules/connectors/analytics
j1-template-2020.0.22 _includes/themes/j1/modules/connectors/analytics