{"id":19028392,"url":"https://github.com/zinovyev/jekyll-metrics","last_synced_at":"2025-10-10T09:45:59.626Z","repository":{"id":53452017,"uuid":"274311618","full_name":"zinovyev/jekyll-metrics","owner":"zinovyev","description":"Jekyll metrics plugin","archived":false,"fork":false,"pushed_at":"2022-10-06T14:48:11.000Z","size":30,"stargazers_count":1,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T13:27:10.909Z","etag":null,"topics":["analytics","google-analytics","jekyll-plugin","metrics","ruby","yandex-metrica","yandex-metrika"],"latest_commit_sha":null,"homepage":"","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/zinovyev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-23T04:51:24.000Z","updated_at":"2022-10-23T00:10:20.000Z","dependencies_parsed_at":"2022-08-27T18:33:01.203Z","dependency_job_id":null,"html_url":"https://github.com/zinovyev/jekyll-metrics","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zinovyev/jekyll-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinovyev%2Fjekyll-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinovyev%2Fjekyll-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinovyev%2Fjekyll-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinovyev%2Fjekyll-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zinovyev","download_url":"https://codeload.github.com/zinovyev/jekyll-metrics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zinovyev%2Fjekyll-metrics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278854216,"owners_count":26057419,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","google-analytics","jekyll-plugin","metrics","ruby","yandex-metrica","yandex-metrika"],"created_at":"2024-11-08T21:10:58.514Z","updated_at":"2025-10-10T09:45:59.583Z","avatar_url":"https://github.com/zinovyev.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JekyllMetrics\n\n\n[![Build Status](https://travis-ci.org/zinovyev/jekyll-metrics.svg?branch=master)](https://travis-ci.org/zinovyev/jekyll-metrics)\n[![Gem Version](https://img.shields.io/gem/v/jekyll-metrics.svg?label=Latest%20Release)](https://rubygems.org/gems/jekyll-metrics)\n\n\nA Jekyll plugin to inject Google Analytics and Yandex Metrica counters into your pages\n\n\n## Installation\n\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'jekyll-metrics'\n```\n\nAnd then execute:\n\n    $ bundle install\n\nOr install it yourself as:\n\n    $ gem install jekyll-metrics\n\n\n## Usage\n\n\nThe scripts will be automatically injected to the top of your pages as soon as the plugin is enabled:\n* Above the first `\u003cscript\u003e` in the `\u003chead\u003e` tag;\n* Or just to the bottom of the `\u003chead\u003e` tag if no other scripts are loaded;\n\nTo enable the plugin, add it to the list of plugins:\n\n```yaml\nplugins:\n  ...\n  - jekyll-metrics\n```\n\nTo make the plugin work properly, the following configuration options should be added to your `_config.yml` file:\n\n```yaml\njekyll_metrics:\n  yandex_metrica_id: 11111111,\n  google_analytics_id: 22-222222222-2\n```\n\nThe `11111111` should be replaced with your personal Yandex Metrica counter ID and the `22-222222222-2` - with one\nfrom your Google Analytics account accordinately.\n\n\n## Advanced configuration\n\n\nActually the plugin may be used to inject any script you like. You'll just need to replace the template of the\nsubstitution scripts. To do so create a file (e.g. `_includes/metrics.html.liquid`) in your site directory and add an\nextra parameter to the configuration section described above:\n\n```yaml\njekyll_metrics:\n  template: _includes/metrics.html.liquid\n  yandex_metrica_id: 11111111,\n  google_analytics_id: 22-222222222-2\n```\n\n\n## Development\n\n\nAfter checking out the repo, run `rake spec` to run the tests. \n\n\n## Contributing\n\n\nBug reports and pull requests are welcome on GitHub at https://github.com/zinovyev/jekyll-metrics.\nThis project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere\nto the [code of conduct](https://github.com/zinovyev/jekyll-metrics/blob/master/CODE_OF_CONDUCT.md).\n\n\n## License\n\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n\n## Code of Conduct\n\n\nEveryone interacting in the JekyllMetrics project's codebases, issue trackers, chat rooms and mailing lists is\nexpected to follow the [code of conduct](https://github.com/[USERNAME]/jekyll-metrics/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzinovyev%2Fjekyll-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzinovyev%2Fjekyll-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzinovyev%2Fjekyll-metrics/lists"}