0.0
The project is in a healthy, maintained state
Jekyll plugin extracted from al-folio that renders Google Analytics, Cronitor RUM, Pirsch, and OpenPanel scripts with optional cookie-consent attributes.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 2.0, < 3.0
~> 13.0

Runtime

>= 3.9, < 5.0
>= 4.0, < 6.0
 Project Readme

al-analytics

al_analytics provides analytics integrations for al-folio v1.x and compatible Jekyll sites.

Supported providers

  • Google Analytics
  • Cronitor Analytics
  • Pirsch Analytics
  • OpenPanel Analytics

Installation

gem 'al_analytics'
plugins:
  - al_analytics

Usage

Configure analytics in _config.yml:

enable_cookie_consent: false

enable_google_analytics: true
google_analytics: "G-XXXXXXXXXX"

enable_cronitor_analytics: false
cronitor_analytics: "XXXXXXXXX"

enable_pirsch_analytics: false
pirsch_analytics: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

enable_openpanel_analytics: false
openpanel_analytics: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

Render scripts in your layout:

{% al_analytics_scripts %}

Legacy analytics: hash configuration is still supported.

Ecosystem context

  • Starter wiring happens in al-folio (Gemfile + _config.yml).
  • Consent/runtime coordination can be combined with al_cookie.

Contributing

Provider/runtime changes belong here. Starter-only docs/demo updates belong in al-folio.