{"id":47837132,"url":"https://github.com/kmonsoor/lektor-google-analytics","last_synced_at":"2026-04-03T20:33:57.885Z","repository":{"id":47579147,"uuid":"48887027","full_name":"kmonsoor/lektor-google-analytics","owner":"kmonsoor","description":"Integration of Google analytics with Lektor CMS","archived":false,"fork":false,"pushed_at":"2021-08-23T14:19:26.000Z","size":10,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T06:53:53.909Z","etag":null,"topics":["cms","google-analytics","lektor","plugin","static-site-generator"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kmonsoor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-01T19:14:25.000Z","updated_at":"2023-08-06T06:29:24.000Z","dependencies_parsed_at":"2022-09-16T19:34:13.194Z","dependency_job_id":null,"html_url":"https://github.com/kmonsoor/lektor-google-analytics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kmonsoor/lektor-google-analytics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2Flektor-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2Flektor-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2Flektor-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2Flektor-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kmonsoor","download_url":"https://codeload.github.com/kmonsoor/lektor-google-analytics/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kmonsoor%2Flektor-google-analytics/sbom","scorecard":{"id":564146,"data":{"date":"2025-08-11","repo":{"name":"github.com/kmonsoor/lektor-google-analytics","commit":"b1e507420218f38dd0f4e9dc93d2c143e2721f9f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"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 4 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-20T14:29:36.045Z","repository_id":47579147,"created_at":"2025-08-20T14:29:36.045Z","updated_at":"2025-08-20T14:29:36.045Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31375769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T17:53:18.093Z","status":"ssl_error","status_checked_at":"2026-04-03T17:53:17.617Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["cms","google-analytics","lektor","plugin","static-site-generator"],"created_at":"2026-04-03T20:33:57.766Z","updated_at":"2026-04-03T20:33:57.871Z","avatar_url":"https://github.com/kmonsoor.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lektor-google-analytics\n\n\n[![](https://img.shields.io/badge/License-BSD-blue.svg)]((https://opensource.org/licenses/BSD-3-Clause)) \n[![Requirements Status](https://requires.io/github/kmonsoor/lektor-google-analytics/requirements.svg?branch=master)](https://requires.io/github/kmonsoor/lektor-google-analytics/requirements/?branch=master)\n\n\nThis plugin adds support for [Google analytics](http://www.google.com/analytics/) to [Lektor CMS](https://github.com/lektor/lektor).\n\nOnce the plugin is enabled, a `generate_google_analytics()` function\nis available to be included in target `template` which automatically include Google-Analytics code in final HTML files rendered by `Lektor`.\n\n## Basic Usage\n\n### Enabling the Plugin\n\nTo enable the plugin add this to your project file:\n\n```ini\n[packages]\nlektor-google-analytics = 0.1.3\n```\n\n### Configuring the Plugin\n\nThe plugin needs a config file with your `Google analytics` code in it.\n\nJust create a file named `google-analytics.ini` into `./configs` folder in your Lektor project's base directory. And, put the `GOOGLE_ANALYTICS_ID` key with target\nproperty ID of form `UA-XXXXXXXX-Y` which you obtained from:\n\n```ini\nGOOGLE_ANALYTICS_ID = UA-XXXXXXXX-Y\n```\n\n### Using in Templates\n\nNow you can add a Google analytics code-snippet in your templates by\njust calling the `generate_google_analytics` function in its \u003cbody\u003e \u003c/body\u003e tag as below.\n\n```html\n\u003cdiv class=\"ga-script\"\u003e{{ generate_google_analytics() }}\u003c/div\u003e\n```\n\nThat's it. All the `HTML` files that rendered from that template will include Google-Analytics code automatically.\n\n------\n### Advanced\n\n* You can use `GOOGLE_ANALYTICS_PROPERTY` property to include your custom-built\nGoogle Analytics tracking code. In that case, your `./configs/google-analytics.ini` will look like this:\n\n```ini\nGOOGLE_ANALYTICS_ID = UA-XXXXXXXX-Y\nGOOGLE_ANALYTICS_PROPERTY = 'my custom code'\n```\n\nDon't use this property unless you know what are you doing.\nBy default, it is set to `auto`.\n\nTo go deeper than this, please refer to\n[Google-Analytics documentation](http://developers.google.com/analytics/devguides/collection/analyticsjs/).\n\n\n------\n**Copyright** (c) 2015,  Khaled Monsoor\nAll rights reserved.\n\nLicensed under [BSD](https://opensource.org/licenses/BSD-3-Clause) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmonsoor%2Flektor-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkmonsoor%2Flektor-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkmonsoor%2Flektor-google-analytics/lists"}