{"id":13678218,"url":"https://github.com/rspack-contrib/rsbuild-plugin-google-analytics","last_synced_at":"2025-04-14T10:13:38.473Z","repository":{"id":229392549,"uuid":"776622725","full_name":"rspack-contrib/rsbuild-plugin-google-analytics","owner":"rspack-contrib","description":"An Rsbuild plugin to setup Google Analytics in your website.","archived":false,"fork":false,"pushed_at":"2025-04-01T02:30:25.000Z","size":94,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-14T10:13:35.050Z","etag":null,"topics":["rsbuild","rsbuild-plugin","rspack"],"latest_commit_sha":null,"homepage":"","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/rspack-contrib.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":"2024-03-24T02:24:28.000Z","updated_at":"2025-04-01T02:30:28.000Z","dependencies_parsed_at":"2024-03-24T03:21:01.968Z","dependency_job_id":"b3473789-8e75-4ad3-ac8a-cfe59ba66673","html_url":"https://github.com/rspack-contrib/rsbuild-plugin-google-analytics","commit_stats":null,"previous_names":["rspack-contrib/rsbuild-plugin-google-analytics"],"tags_count":4,"template":false,"template_full_name":"rspack-contrib/rsbuild-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspack-contrib%2Frsbuild-plugin-google-analytics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspack-contrib%2Frsbuild-plugin-google-analytics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspack-contrib%2Frsbuild-plugin-google-analytics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rspack-contrib%2Frsbuild-plugin-google-analytics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rspack-contrib","download_url":"https://codeload.github.com/rspack-contrib/rsbuild-plugin-google-analytics/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860167,"owners_count":21173342,"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":["rsbuild","rsbuild-plugin","rspack"],"created_at":"2024-08-02T13:00:51.205Z","updated_at":"2025-04-14T10:13:38.444Z","avatar_url":"https://github.com/rspack-contrib.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Rsbuild Plugins"],"readme":"# rsbuild-plugin-google-analytics\n\nAn Rsbuild plugin to setup Google Analytics in your website.\n\n\u003cp\u003e\n  \u003ca href=\"https://npmjs.com/package/rsbuild-plugin-google-analytics\"\u003e\n   \u003cimg src=\"https://img.shields.io/npm/v/rsbuild-plugin-google-analytics?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"npm version\" /\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"license\" /\u003e\n  \u003ca href=\"https://npmcharts.com/compare/rsbuild-plugin-google-analytics?minimal=true\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/rsbuild-plugin-google-analytics.svg?style=flat-square\u0026colorA=564341\u0026colorB=EDED91\" alt=\"downloads\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\nInstall:\n\n```bash\nnpm add rsbuild-plugin-google-analytics -D\n```\n\nAdd plugin to your `rsbuild.config.ts`:\n\n```ts\n// rsbuild.config.ts\nimport { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';\n\nexport default {\n  plugins: [\n    pluginGoogleAnalytics({\n      // replace this with your Google tag ID\n      // see: https://support.google.com/analytics/answer/9539598?hl=en\n      id: 'G-xxxxxxxxxx',\n    }),\n  ],\n};\n```\n\n## Options\n\nHere are the available options:\n\n| Name   | Type      | Description                        | Defaults    |\n| ------ | --------- | ---------------------------------- | ----------- |\n| id     | `string`  | Google tag ID                      | `undefined` |\n| enable | `boolean` | Whether to enable Google Analytics | `true`      |\n\n## License\n\n[MIT](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspack-contrib%2Frsbuild-plugin-google-analytics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frspack-contrib%2Frsbuild-plugin-google-analytics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frspack-contrib%2Frsbuild-plugin-google-analytics/lists"}