{"id":16782188,"url":"https://github.com/danielbayerlein/middleman-google-analytics","last_synced_at":"2026-02-08T04:33:49.747Z","repository":{"id":7355524,"uuid":"8679959","full_name":"danielbayerlein/middleman-google-analytics","owner":"danielbayerlein","description":"📈 A @middleman plugin to handle generating your Google Analytics tracking code.","archived":false,"fork":false,"pushed_at":"2018-06-26T17:46:23.000Z","size":120,"stargazers_count":92,"open_issues_count":6,"forks_count":19,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-13T18:04:07.517Z","etag":null,"topics":["google-analytics","middleman","middleman-extension"],"latest_commit_sha":null,"homepage":"","language":"Gherkin","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/danielbayerlein.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-03-10T03:22:07.000Z","updated_at":"2024-10-14T08:35:57.000Z","dependencies_parsed_at":"2022-08-20T08:11:01.458Z","dependency_job_id":null,"html_url":"https://github.com/danielbayerlein/middleman-google-analytics","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/danielbayerlein/middleman-google-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayerlein%2Fmiddleman-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayerlein%2Fmiddleman-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayerlein%2Fmiddleman-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayerlein%2Fmiddleman-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielbayerlein","download_url":"https://codeload.github.com/danielbayerlein/middleman-google-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielbayerlein%2Fmiddleman-google-analytics/sbom","scorecard":{"id":319356,"data":{"date":"2025-08-11","repo":{"name":"github.com/danielbayerlein/middleman-google-analytics","commit":"b167405af96ab2abecf7e9fd71562fe668ac435f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T00:59:41.401Z","repository_id":7355524,"created_at":"2025-08-18T00:59:41.401Z","updated_at":"2025-08-18T00:59:41.401Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29220519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T03:18:47.732Z","status":"ssl_error","status_checked_at":"2026-02-08T03:15:31.985Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["google-analytics","middleman","middleman-extension"],"created_at":"2024-10-13T07:44:39.198Z","updated_at":"2026-02-08T04:33:49.731Z","avatar_url":"https://github.com/danielbayerlein.png","language":"Gherkin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# middleman-google-analytics\n\n[![Gem Version](https://badge.fury.io/rb/middleman-google-analytics.svg)](http://badge.fury.io/rb/middleman-google-analytics)\n[![Build Status](https://travis-ci.org/danielbayerlein/middleman-google-analytics.svg?branch=master)](https://travis-ci.org/danielbayerlein/middleman-google-analytics)\n[![Dependency Status](https://gemnasium.com/danielbayerlein/middleman-google-analytics.svg)](https://gemnasium.com/danielbayerlein/middleman-google-analytics)\n[![Coverage Status](https://coveralls.io/repos/github/danielbayerlein/middleman-google-analytics/badge.svg?branch=master)](https://coveralls.io/github/danielbayerlein/middleman-google-analytics?branch=master)\n\n**middleman-google-analytics** is a [Middleman](https://middlemanapp.com)\nextension that generates\n[Google Analytics](https://www.google.de/intl/en/analytics/) tracking code, and\nkeeps your config in `config.rb`, where it belongs.\n\n## Installation\n\n1. Specify the dependency in your project's `Gemfile`:\n\n  ```ruby\n  gem 'middleman-google-analytics', '~\u003e 3.0'\n  ```\n\n2. Activate the Google Analytics extension in your project's `config.rb`:\n\n  ```ruby\n  # config.rb\n  activate :google_analytics do |ga|\n    ga.tracking_id = 'UA-XXXXXXX-X' # Replace with your property ID.\n  end\n  ```\n\n3. In your layout, after your footer, call `google_analytics_tag` and include\n   the results in the page:\n\n  **Haml:**\n\n  ```haml\n  = google_analytics_tag\n  ```\n\n  **ERB:**\n\n  ```erb\n  \u003c%= google_analytics_tag %\u003e\n  ```\n\n  **JavaScript with ERB (js.erb):**\n\n  ```erb\n  \u003c%= google_analytics_tag %\u003e\n  ```\n\n## Configuration\n\n```ruby\nactivate :google_analytics do |ga|\n  # Property ID (default = nil)\n  ga.tracking_id = 'UA-XXXXXXX-X'\n\n  # Removing the last octet of the IP address (default = false)\n  ga.anonymize_ip = false\n\n  # Tracking across a domain and its subdomains (default = nil)\n  ga.domain_name = 'example.com'\n\n  # Tracking across multiple domains and subdomains (default = false)\n  ga.allow_linker = false\n\n  # Enhanced Link Attribution (default = false)\n  ga.enhanced_link_attribution = false\n\n  # Container ID for Google Optimize (A/B Testing)\n  ga.optimize = 'GTM-123456'\n\n  # Log detail messages to the console (default = false)\n  ga.debug = false\n\n  # Trace debugging will output more verbose information to the console (default = false)\n  ga.debug_trace = false\n\n  # Disable extension (default = false)\n  ga.disable = true\n\n  # Testing your implementation without sending hits (default = true) in development\n  ga.test = true\n\n  # Compress the JavaScript code (default = false)\n  ga.minify = false\n\n  # Output style - :html includes \u003cscript\u003e tag (default = :html)\n  ga.output = :js\n\nend\n```\n\n## Usage\n\nOnce you've bundled you should be able to run middleman as normal, and have it\ndisplay the GA tracking code.\n\n## Special Thanks\n\n* [Jon Frisby (@MrJoy)](https://github.com/MrJoy)\n  * For the initial code.\n* [Atsushi Nagase (@ngs)](https://github.com/ngs)\n  * Cucumber tests and \"Universal Analytics\" support.\n* [Thomas Reynolds (tdreyno)](https://github.com/tdreyno)\n  * For the great support.\n* [Contributors](../../graphs/contributors)\n\n## Contributing\n\n1. Fork it\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 new [Pull Request](../../pull/new/master)\n\n## License\n\nCopyright (c) 2014-present Daniel Bayerlein. See [LICENSE](./LICENSE.md) for details.\n\nCopyright (c) 2013 Jon Frisby.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbayerlein%2Fmiddleman-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielbayerlein%2Fmiddleman-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielbayerlein%2Fmiddleman-google-analytics/lists"}