Skip to content

chore: remove Google Analytics integration#1087

Open
rm-hull wants to merge 2 commits intomainfrom
core/remove-google-analytics
Open

chore: remove Google Analytics integration#1087
rm-hull wants to merge 2 commits intomainfrom
core/remove-google-analytics

Conversation

@rm-hull
Copy link
Copy Markdown
Owner

@rm-hull rm-hull commented Mar 13, 2026

Remove react-ga4 dependency and associated environment variables and initialization code as Google Analytics is no longer required for the project.

Remove `react-ga4` dependency and associated environment
variables and initialization code as Google Analytics is no
longer required for the project.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on decluttering the project by systematically removing all traces of Google Analytics. This change streamlines the codebase, reduces the number of external dependencies, and simplifies environment configuration, as Google Analytics is no longer a requirement for the project.

Highlights

  • Google Analytics Removal: The Google Analytics integration has been completely removed from the project, including its dependency, environment variables, and initialization code.
  • Dependency Cleanup: The react-ga4 package and its associated entries in package.json and yarn.lock have been eliminated, reducing project dependencies.
  • Configuration Streamlining: The VITE_GOOGLE_ANALYTICS_MEASUREMENT_ID entry was removed from .env.example, simplifying environment configuration.
Changelog
  • .env.example
    • Removed the VITE_GOOGLE_ANALYTICS_MEASUREMENT_ID environment variable example.
  • package.json
    • Removed the react-ga4 dependency.
  • src/main.tsx
    • Removed the ReactGA import statement.
    • Removed the Google Analytics initialization block.
  • yarn.lock
    • Removed the react-ga4 entry from the lock file.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/deploy.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the Google Analytics integration. It correctly removes the react-ga4 dependency from package.json, the corresponding environment variable from .env.example, and the initialization logic from src/main.tsx. The changes are self-contained and align with the PR's objective.

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 23074284934

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 23.173%

Totals Coverage Status
Change from base Build 23074053131: 0.02%
Covered Lines: 445
Relevant Lines: 1754

💛 - Coveralls

…e-analytics

* 'main' of github.com:rm-hull/maps: (44 commits)
  chore: remove jotai and update documentation
  chore(deps-dev): bump @tanstack/eslint-plugin-query in the eslint group (#1124)
  chore(deps): bump @sentry/react from 10.46.0 to 10.47.0 (#1127)
  chore(deps): bump @tanstack/react-query-devtools from 5.95.2 to 5.96.0 (#1126)
  chore(deps): bump react-leaflet-cluster from 4.0.0 to 4.1.3 (#1125)
  chore(deps): bump @tanstack/react-query from 5.95.2 to 5.96.0 (#1128)
  chore(deps-dev): bump the eslint group with 4 updates (#1122)
  chore(deps): bump axios from 1.13.6 to 1.14.0 (#1123)
  perf: use webp for weather layer images
  chore(deps): bump actions/configure-pages from 5 to 6 (#1121)
  chore: update use-local-storage version
  chore: bump @rm-hull/chakra-error-fallback to 0.1.3
  chore: bump vitest version
  chore(deps): bump picomatch from 2.3.1 to 2.3.2 (#1119)
  chore(deps): bump react-ga4 from 2.1.0 to 3.0.1 (#1117)
  chore(deps): bump yaml from 1.10.2 to 1.10.3 (#1120)
  chore(deps): bump actions/deploy-pages from 4 to 5 (#1113)
  chore(deps): bump maplibre-gl from 5.21.0 to 5.21.1 (#1115)
  chore(deps): bump @sentry/react from 10.45.0 to 10.46.0 (#1116)
  chore(deps): bump web-vitals from 5.1.0 to 5.2.0 (#1118)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants