Skip to content

Multiple improvements: Remove logo, add Google Analytics, integrate Sentry #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

bhouston
Copy link
Member

@bhouston bhouston commented Mar 7, 2025

Multiple Improvements

This PR implements three improvements to the documentation site:

  1. Removes the Docusaurus dinosaur logo (Fixes Remove Dinosaur Docusaurus Logo #14)

    • Removed the logo property from the navbar configuration
    • The site now displays just the text "MyCoder Docs" in the navbar
  2. Adds Google Analytics tracking (Fixes Integrate Google Analytics Tracking #17)

    • Configured Google Analytics with tracking ID G-4G4NJBHVNF
    • Set anonymizeIP to true for better GDPR compliance
  3. Integrates Sentry for error tracking (Fixes Integrate Sentry.io for Error Tracking #18)

    • Added the docusaurus-plugin-sentry package
    • Configured with the provided DSN
    • Set to only run in production environments

Testing

  • Tested locally to ensure the site renders correctly without the logo
  • Google Analytics and Sentry integrations will be fully active only in production environments

Screenshots

Before (with logo):
Before

After (without logo):
After

@bhouston bhouston merged commit 185b64f into main Mar 7, 2025
2 checks passed
@bhouston
Copy link
Member Author

bhouston commented Mar 7, 2025

I've fixed the configuration issues:

  1. Moved Google Analytics configuration from themeConfig to the preset options as required by Docusaurus 3.x
  2. Fixed the Sentry DSN format by removing the https:// prefix

The site now starts correctly with pnpm start and all features are working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant