Sha256: 4900c62aa8ff6f3d1785107295c561f75ea5a6674b53d890e20702a3ffee2f3a
Contents?: true
Size: 1.87 KB
Versions: 5
Compression:
Stored size: 1.87 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) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/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.layout.connectors ] [Start processing load region head, layout: {{page.layout}}] --> {% if analytics and page.analytics %} {% case analytics_provider %} {% when "google" %} <!-- [INFO ] [j1.layout.connectors ] [Place Google Analytics ] --> {% include themes/{{site.template.name}}/modules/connectors/analytic/google-analytics.html %} {% when "custom" %} <!-- [INFO ] [j1.layout.connectors ] [Place Custom Provider ] --> {% include themes/{{site.template.name}}/modules/connectors/analytic/custom-analytics.html %} {% endcase %} {% endif %} <!-- [INFO ] [j1.layout.connectors ] [End processing] -->
Version data entries
5 entries across 5 versions & 1 rubygems