Sha256: a11cff515c8f1250f375f574dde09bac4f4c0731a796bebef425a27ef104ff5a
Contents?: true
Size: 1.48 KB
Versions: 39
Compression:
Stored size: 1.48 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 %} <!-- load the GA library --> <script async src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script> <!-- GA depends on the cookie consent and is enabled/disabled on OptIn/Out--> <!-- <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', '{{tracking_id}}'); </script> -->
Version data entries
39 entries across 39 versions & 1 rubygems