Sha256: f97e4f42e8d20f301ed172c9c0e7d9384e04260139fc1f13ac31f686e4610cc9
Contents?: true
Size: 1.59 KB
Versions: 4
Compression:
Stored size: 1.59 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: load the GA library --> <script async src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script> <!-- Google Analytics: GA cookies disabled by default --> <!-- GA cookies disabled by default --> <!-- 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
4 entries across 4 versions & 1 rubygems