{"id":17527212,"url":"https://github.com/gethinode/mod-google-analytics","last_synced_at":"2025-04-23T17:42:25.899Z","repository":{"id":257339244,"uuid":"857659840","full_name":"gethinode/mod-google-analytics","owner":"gethinode","description":"A Hugo module to add Google Analytics to your Hinode site","archived":false,"fork":false,"pushed_at":"2025-04-21T06:50:54.000Z","size":360,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-21T07:44:46.196Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/gethinode.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-15T09:00:45.000Z","updated_at":"2025-04-21T06:50:51.000Z","dependencies_parsed_at":"2024-09-16T05:24:55.289Z","dependency_job_id":"ae4fde73-7e8c-43c9-87d1-826b053f1d16","html_url":"https://github.com/gethinode/mod-google-analytics","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.6428571428571428,"last_synced_commit":"bfa1bf3476e24c1b188e0a580e7b46b76a4ed732"},"previous_names":["gethinode/mod-google-analytics"],"tags_count":19,"template":false,"template_full_name":"gethinode/mod-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gethinode%2Fmod-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gethinode%2Fmod-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gethinode%2Fmod-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gethinode%2Fmod-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gethinode","download_url":"https://codeload.github.com/gethinode/mod-google-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250020733,"owners_count":21361959,"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-10-20T15:10:23.163Z","updated_at":"2025-04-23T17:42:25.877Z","avatar_url":"https://github.com/gethinode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hinode Module - Google Analytics\n\n\u003c!-- Tagline --\u003e\n\u003cp align=\"center\"\u003e\n    \u003cb\u003eA Hugo module to add Google Analytics to your Hinode site\u003c/b\u003e\n    \u003cbr /\u003e\n\u003c/p\u003e\n\n\u003c!-- Badges --\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://gohugo.io\" alt=\"Hugo website\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/generator-hugo-brightgreen\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://gethinode.com\" alt=\"Hinode theme\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/theme-hinode-blue\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/gethinode/mod-google-analytics/commits/main\" alt=\"Last commit\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/last-commit/gethinode/mod-google-analytics.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/gethinode/mod-google-analytics/issues\" alt=\"Issues\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues/gethinode/mod-google-analytics.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/gethinode/mod-google-analytics/pulls\" alt=\"Pulls\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/issues-pr-raw/gethinode/mod-google-analytics.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/gethinode/mod-google-analytics/blob/main/LICENSE\" alt=\"License\"\u003e\n        \u003cimg src=\"https://img.shields.io/github/license/gethinode/mod-google-analytics\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n## About\n\n![Logo](https://raw.githubusercontent.com/gethinode/hinode/main/static/img/logo.png)\n\nHinode is a clean blog theme for [Hugo][hugo], an open-source static site generator. Hinode is available as a [template][repository_template], and a [main theme][repository]. This repository maintains a Hugo module to enable [Google Analytics][google-analytics], part of the Google Marketing Platform, for a Hinode site. Visit the Hinode documentation site for [installation instructions][hinode_docs].\n\n## Contributing\n\nThis module uses [semantic-release][semantic-release] to automate the release of new versions. The package uses `husky` and `commitlint` to ensure commit messages adhere to the [Conventional Commits][conventionalcommits] specification. You can run `npx git-cz` from the terminal to help prepare the commit message.\n\n## Configuration\n\n\u003e [!NOTE]\n\u003e By convention, Hinode uses kebab case as naming convention for module names. However, the module name in the site parameters is renamed to `GoogleAnalytics` to align with Hugo's privacy settings.\n\nSet you `G-tag` in your site configuration (usually `hugo.toml`) in the following section:\n\n```toml\n[services]\n  [services.googleAnalytics]\n    ID = \"G-xxxxxxxxxx\"\n```\n\nYou can modify the privacy configuration in the following section:\n\n```toml\n[privacy]\n  [privacy.googleAnalytics]\n    disable = false\n    respectDoNotTrack = false\n```\n\nThis module supports the following parameters (see the section `params.modules` in `config.toml`):\n\n| Setting                   | Default | Description |\n|---------------------------|---------|-------------|\n| GoogleAnalytics.force     | false   | Trigger to force include the analytics scripts, bypassing other settings. Use this setting for debugging and testing only. |\n| GoogleAnalytics.gcm       | false   | Trigger to enable Google Consent Mode v2 (advanced mode). |\n| GoogleAnalytics.nonce     | false   | Trigger to pass nonces to tag manager, only applicable when GCM is enabled. See [Google documentation][google-csp] for more details. |\n\n## Google Consent Mode v2\n\nThis module supports Google Consent Mode v2. Use the following parameters in your site configuration to enable this.\n\n\u003e [!WARNING]\n\u003e Make sure you have properly configured Cookie Consent before enabling GCMv2.\n\n```toml\n[params.modules.GoogleAnalytics]\n  integration = \"critical\"\n  state = \"immediate\"\n  category = \"necessary\"\n  gcm = true\n  nonce = false\n```\n\n## Content Security Policy\n\nThe module includes the policies required for Google Tag Manager's Preview Mode and Google Analytics 4. Review [Google's Content Security Policy][google-csp] to review the settings required for Google Ads, Google Ads User Data Beacon, Floodlight, and Service Worker.\n\n\n\u003c!-- MARKDOWN LINKS --\u003e\n[hugo]: https://gohugo.io\n[hinode_docs]: https://gethinode.com\n[google-analytics]: https://marketingplatform.google.com\n[google-csp]: https://developers.google.com/tag-platform/security/guides/csp\n[repository]: https://github.com/gethinode/hinode.git\n[repository_template]: https://github.com/gethinode/template.git\n[conventionalcommits]: https://www.conventionalcommits.org\n[husky]: https://typicode.github.io/husky/\n[semantic-release]: https://semantic-release.gitbook.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgethinode%2Fmod-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgethinode%2Fmod-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgethinode%2Fmod-google-analytics/lists"}