{"id":13612393,"url":"https://github.com/hendrikschneider/jekyll-analytics","last_synced_at":"2025-10-10T12:23:59.997Z","repository":{"id":42164309,"uuid":"88376455","full_name":"hendrikschneider/jekyll-analytics","owner":"hendrikschneider","description":"Plugin to easily add webanalytics to your jekyll site. Currently Google Analytics, Piwik and mPulse are supported.","archived":false,"fork":false,"pushed_at":"2025-04-08T21:09:15.000Z","size":202,"stargazers_count":220,"open_issues_count":16,"forks_count":25,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-08T21:33:07.723Z","etag":null,"topics":["analytics","jekyll","jekyll-plugin"],"latest_commit_sha":null,"homepage":"https://github.com/hendrikschneider/jekyll-analytics","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hendrikschneider.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-15T21:59:55.000Z","updated_at":"2025-04-08T21:01:21.000Z","dependencies_parsed_at":"2024-08-14T00:12:39.314Z","dependency_job_id":null,"html_url":"https://github.com/hendrikschneider/jekyll-analytics","commit_stats":{"total_commits":73,"total_committers":18,"mean_commits":4.055555555555555,"dds":0.5753424657534247,"last_synced_commit":"40e09570dea80e3a9ecb0ad796aad1c434ff067c"},"previous_names":["hendrik91/jekyll-analytics"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrikschneider%2Fjekyll-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrikschneider%2Fjekyll-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrikschneider%2Fjekyll-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendrikschneider%2Fjekyll-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hendrikschneider","download_url":"https://codeload.github.com/hendrikschneider/jekyll-analytics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705760,"owners_count":21148586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","jekyll","jekyll-plugin"],"created_at":"2024-08-01T20:00:29.159Z","updated_at":"2025-10-10T12:23:54.975Z","avatar_url":"https://github.com/hendrikschneider.png","language":"Ruby","funding_links":[],"categories":["Analytics","Ruby"],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/hendrikschneider/jekyll-analytics.svg?branch=master)](https://travis-ci.org/hendrikschneider/jekyll-analytics)\n![](http://ruby-gem-downloads-badge.herokuapp.com/jekyll-analytics?type=total)\n[![Maintainability](https://api.codeclimate.com/v1/badges/a07904b989dcb7e4e477/maintainability)](https://codeclimate.com/github/hendrikschneider/jekyll-analytics/maintainability)\n\n# Jekyll::analytics\nWebanalytics for Jekyll.\n\nThere are many tutorials online to add analytics to Jekyll by extending the template. Jekyll-analytics is here to take care of this. Just install the plugin, configure it and you are done :)\n\nJekyll-analytics: Webanalytics made easy.\n\nSupported:\n  - [Google Analytics](https://analytics.google.com/analytics/web/)\n  - [Matomo](https://matomo.org/)\n  - [Piwik](https://piwik.org/)\n  - [mPulse](https://www.soasta.com/performance-monitoring/)\n  - [Plausible](https://plausible.io)\n  - [Counter](https://counter.dev/)\n  - [PostHog](https://posthog.com/)\n\n## Installation\n\nAdd this to your `Gemfile`:\n\n```\ngem 'jekyll-analytics'\n```\nThen execute\n```\n$ bundle\n```\nOr install it yourself\n```\ngem install jekyll-analytics\n```\n\n## Configuration\nEdit `_config.yml` to use the plugin:\n```\nplugins:\n  - jekyll-analytics\n```\n\nConfigure the plugin in `_config.yml` by adding:\n\n```yml\njekyll_analytics:\n  GoogleAnalytics:          # Add, if you want to track with Google Analytics\n    id: UA-123-456          # Required - replace with your tracking id\n    anonymizeIp: false      # Optional - Default: false - set to true for anonymized tracking\n\n  Matomo:                   # Add, if you want to track with Matomo (former Piwik Analytics)\n    url: matomo.example.com # Required - url to Matomo installation without trailing /\n    siteId: \"1234\"          # Required - replace with your Matomo site id (Write id as string)\n\n  Piwik:                    # Add, if you want to track with Piwik\n    url: piwik.example.com  # Required - url to Piwik installation without trailing /\n    siteId: \"1234\"          # Required - replace with your Piwik site id (Write id as string)\n\n  MPulse:                   # Add if you want to track performance with mPulse\n    apikey: XXXXX-YYYYY-ZZZZZ-AAAAA-23456   # Required - replace with your mPulse API key\n\n  Plausible:\n    domain: 'example.com'   # The domain configured in plausible\n    source: 'https://plausible.example.com/js/plausible.js' # The source URL of the javascript,\n    host: 'https://plausible.example.com' # The base URL of the plausible host, only needed for embed_tracker\n    404_tracking: true      # Enable 404 error tracking. Also requires changes to your webserver and 404.md\n                            # See https://plausible.io/docs/404-error-pages-tracking for other set up required\n    embed_tracker: true     # embed the tracking code instead of loading the javascript; this removes one\n                            # call from page loading and circumvents adblockers; this uses `host` to generate\n                            # the correct callback destination\n\n  CounterDotDev:\n    user: 'SomeUser'  # Your username on counter.dev (it is the value for the key \"user\" on your tracking code)\n    domain: \"example.com\" # The domain configured in plausible\n    source: \"https://plausible.example.com/js/plausible.js\" # The source of the javascript\n\n  PostHog:\n    url: \"https://us.i.posthog.com\" # Required - replace with the url of post hog analytics\n    apikey: \"phc_xxyy\" # Required - replace with the apikey of post hog analytics\n```\n\n## Usage\nTracking will be disabled in development mode. To enable production mode set enviroment variable JEKYLL_ENV=production.\nGithub pages automatically sets JEKYLL_ENV to production.\nFor testing use\n```\n$ JEKYLL_ENV=production jekyll serve\n```\n\n## Contributing\n\n1. Fork it ( https://github.com/hendrikschneider/jekyll-analytics/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\nHow to add support for a new tracker:\n1. Create new tracker class in lib/analytics/YourTracker.rb\n  ```\n  #initialize and render must be implemented!\n  class YourTracker\n    def initialize(config)\n      #validate config\n    end\n\n    def render\n      return \"Tracking code to insert into html \u003e head\"\n    end\n  end\n```\n2. Update README.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrikschneider%2Fjekyll-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhendrikschneider%2Fjekyll-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendrikschneider%2Fjekyll-analytics/lists"}