{"id":19069118,"url":"https://github.com/cbos/hugo-faro-analytics","last_synced_at":"2026-05-17T00:30:18.372Z","repository":{"id":207825121,"uuid":"720124790","full_name":"cbos/hugo-faro-analytics","owner":"cbos","description":"Hugo analytics module with Grafana Faro","archived":false,"fork":false,"pushed_at":"2025-01-10T13:48:26.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T14:49:05.913Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/cbos.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2023-11-17T16:19:09.000Z","updated_at":"2025-01-10T13:48:30.000Z","dependencies_parsed_at":"2023-11-23T21:28:59.946Z","dependency_job_id":"40b611ba-0aeb-491d-822d-071dbf4526e9","html_url":"https://github.com/cbos/hugo-faro-analytics","commit_stats":null,"previous_names":["cbos/hugo-faro-analytics"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbos%2Fhugo-faro-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbos%2Fhugo-faro-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbos%2Fhugo-faro-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbos%2Fhugo-faro-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbos","download_url":"https://codeload.github.com/cbos/hugo-faro-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240122575,"owners_count":19751142,"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":[],"created_at":"2024-11-09T01:13:23.090Z","updated_at":"2026-05-17T00:30:16.423Z","avatar_url":"https://github.com/cbos.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hugo analytics module with Grafana Faro\n\nBy default you can use Google Analytics with Grafana. But there are alternatives.   \nThis module integrates Grafana Faro observability library with Hugo.\n\nThis module is inspired by https://github.com/hugomods/plausible-analytics\n\n##\n```shell\ngit submodule add https://github.com/cbos/hugo-faro-analytics.git themes/faro-analytics\n```\n\n## Enable module\n\n```toml\n[module]\n[[module.imports]]\n    path = 'faro-analytics'\n```\n\n## Add to a page header\n\n```\n{{ partial \"faro-analytics/assets/js\" . }}\n```\n\n## Site Configuration TOML\n\n| Parameter   | type   | required | description                                                                                  |  \n|-------------|--------|----------|----------------------------------------------------------------------------------------------|\n| endpoint    | string | yes      | Url of the Faro collector like https://faro-collector-prod-eu-west-2.grafana.net/collect/xxx | \n| name        | string | yes      | Name of the application                                                                      |\n| version     | string | no       | Version to report, can be used to make distinction between releases                          | \n\nEnvironment like `production` or `development` is automatically added, as [hugo.Environment](https://gohugo.io/functions/hugo/environment/) variable is used.\n\n```toml\n[params]\n[params.faro_analytics]\n    endpoint = \"https://faro-collector-...\"\n    name = \"name\"\n    version = \"1.0.0\"\n```\n\n## Page Configuration TOML\n\nIf you want to exclude a page from analytics, you can configure that per page.\n\n| Parameter   | type    | required | description                                                           |  \n|-------------|---------|----------|-----------------------------------------------------------------------|\n| enabled     | boolean | no       | By default analysis for a page is abled. Make it `false` to disable it | \n\n```yaml\nfaro_analytics:\n  analyze: true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbos%2Fhugo-faro-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbos%2Fhugo-faro-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbos%2Fhugo-faro-analytics/lists"}