{"id":18607356,"url":"https://github.com/addono/docusaurus-plugin-goatcounter","last_synced_at":"2025-04-10T20:32:15.863Z","repository":{"id":37892641,"uuid":"300880638","full_name":"Addono/docusaurus-plugin-goatcounter","owner":"Addono","description":"A Node.js plugin which adds GoatCounter web analytics to your Docusaurus website","archived":false,"fork":false,"pushed_at":"2025-04-04T09:36:14.000Z","size":1118,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-04T10:28:52.684Z","etag":null,"topics":["analytics","docusaurus","docusaurus-plugin","docusaurus-v3","goatcounter","plugin","privacy"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/docusaurus-plugin-goatcounter","language":"TypeScript","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/Addono.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}},"created_at":"2020-10-03T12:57:03.000Z","updated_at":"2025-04-04T09:31:34.000Z","dependencies_parsed_at":"2024-02-08T14:46:56.978Z","dependency_job_id":"07a04319-acf5-477b-abce-fb7e4d1940c3","html_url":"https://github.com/Addono/docusaurus-plugin-goatcounter","commit_stats":{"total_commits":159,"total_committers":5,"mean_commits":31.8,"dds":0.5408805031446541,"last_synced_commit":"5204ca93c074ac2d11ffadcea0f7db64ef14541e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fdocusaurus-plugin-goatcounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fdocusaurus-plugin-goatcounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fdocusaurus-plugin-goatcounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Addono%2Fdocusaurus-plugin-goatcounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Addono","download_url":"https://codeload.github.com/Addono/docusaurus-plugin-goatcounter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290041,"owners_count":21078923,"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":["analytics","docusaurus","docusaurus-plugin","docusaurus-v3","goatcounter","plugin","privacy"],"created_at":"2024-11-07T02:29:10.335Z","updated_at":"2025-04-10T20:32:15.852Z","avatar_url":"https://github.com/Addono.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docusausus GoatCounter Plugin\n\n[![License](https://img.shields.io/github/license/Addono/docusaurus-plugin-goatcounter?style=flat-square)](https://github.com/Addono/docusaurus-plugin-goatcounter/blob/master/LICENSE)\n[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://img.shields.io/badge/project%20status-Active-greengrass?style=flat-square)](https://www.repostatus.org/#active)\n[![Depfu](https://img.shields.io/depfu/Addono/docusaurus-plugin-goatcounter?style=flat-square)](https://depfu.com/github/Addono/docusaurus-plugin-goatcounter)\n[![npm](https://img.shields.io/npm/dt/docusaurus-plugin-goatcounter?style=flat-square)](https://www.npmjs.com/package/docusaurus-plugin-goatcounter)\n[![npm](https://img.shields.io/npm/v/docusaurus-plugin-goatcounter?style=flat-square)](https://www.npmjs.com/package/docusaurus-plugin-goatcounter)\n[![GitHub stars](https://img.shields.io/github/stars/Addono/docusaurus-plugin-goatcounter?style=flat-square)](https://github.com/Addono/docusaurus-plugin-goatcounter/stargazers)\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n## 📝 Table of Contents\n\n- [About](#about)\n- [Install](#install)\n- [Getting Started](#getting_started)\n- [Contributors](#contributors)\n\n## 🧐 About \u003ca name = \"about\"\u003e\u003c/a\u003e\n\nThis plugin adds GoatCounter web analytics to your Docusaurus v2 project. It has zero dependencies as the only thing it needs to do is include the tracking script in your build outputs.\n\n## 🚀 Install \u003ca name = \"install\"\u003e\u003c/a\u003e\n\nFirst, add the plugin as a dependency to your project.\n\n```bash\n# Yarn\nyarn add docusaurus-plugin-goatcounter\n\n# npm\nnpm install docusaurus-plugin-goatcounter\n```\n\nThen, configure Docusaurus to use your plugin by adding the following to `docusaurus.config.js`. Replace `your-goatcounter-code` with the identifier of your GoatCounter instance. E.g. if you acecss GoatCounter at https://acmecorp.goatcounter.com, then your code is `acmecorp`.\n\n```js\nmodule.exports = {\n  plugins: ['docusaurus-plugin-goatcounter'],\n  themeConfig: {\n    goatcounter: {\n      code: 'your-goatcounter-code',\n    },\n  },\n};\n```\n\n\u003e [!WARNING]\n\u003e **When building your website for production**, set `NODE_ENV=production`. If not, the plugin will avoid injecting the Goatcounter tag as to prevent including non-production traffic.\n\n## 🏁 Getting Started \u003ca name = \"getting_started\"\u003e\u003c/a\u003e\n\nBelow is a list of commands you can use for development.\n\n### `yarn start`\n\nRuns the project in development/watch mode.\n\n### `yarn build`\n\nBundles the package to the `dist` folder.\n\n### `yarn test`\n\nRuns the test watcher (Jest) in an interactive mode. By default, runs tests related to files changed since the last commit.\n\n## ✨ Contributors \u003ca name = \"contributors\"\u003e\u003c/a\u003e\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://aknapen.nl\"\u003e\u003cimg src=\"https://avatars1.githubusercontent.com/u/15435678?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eAdriaan Knapen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/Addono/docusaurus-plugin-goatcounter/commits?author=Addono\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#tool-Addono\" title=\"Tools\"\u003e🔧\u003c/a\u003e \u003ca href=\"https://github.com/Addono/docusaurus-plugin-goatcounter/commits?author=Addono\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/Addono/docusaurus-plugin-goatcounter/commits?author=Addono\" title=\"Tests\"\u003e⚠️\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fdocusaurus-plugin-goatcounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faddono%2Fdocusaurus-plugin-goatcounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faddono%2Fdocusaurus-plugin-goatcounter/lists"}