A Jekyll plugin that provides integrations with various analytics services for al-folio sites.
- Google Analytics
- Cronitor Analytics
- Pirsch Analytics
- OpenPanel Analytics
Add this line to your Jekyll site's Gemfile:
gem 'al_analytics'And then execute:
$ bundle install- Add the plugin to your site's
_config.yml:
plugins:
- al_analytics- Configure your analytics services 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"The plugin also supports the legacy analytics: hash used by earlier releases.
- Add the analytics tag to your layout file (e.g.,
_layouts/default.html):
{% al_analytics_scripts %}After checking out the repo, run bundle install to install dependencies.
Bug reports and pull requests are welcome on GitHub.