feat: add Google Analytics integration to Docusaurus configuration#129
Conversation
|
Someone is attempting to deploy a commit to the recode Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds Google Analytics integration to the Docusaurus configuration to enable website traffic tracking. Key changes include:
- Adding the "@docusaurus/plugin-google-analytics" dependency in package.json.
- Inserting the GA script snippet into docusaurus.config.ts.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| package.json | Added GA analytics plugin dependency |
| docusaurus.config.ts | Added manual GA script injection, including debug_mode logic |
Comments suppressed due to low confidence (1)
docusaurus.config.ts:23
- The PR adds the Google Analytics plugin in package.json but then manually injects the GA script in the config; consider using the plugin's prescribed configuration to keep a consistent approach to integration.
// Google Analytics
| presets: [ | ||
| [ | ||
| "classic", | ||
| 'classic', |
There was a problem hiding this comment.
[nitpick] The presets value changed from double quotes to single quotes; if there's a project-wide style guideline for quoting, standardize the usage for consistency.
| 'classic', | |
| "classic", |
|
The build has been failed.
Try running run build everytime before push. |
|
Will inspect and update |

@sanjay-kv
Solves :- #112
Added analytics ...