Skip to content

feat(analytics): integrate GA4 with SPA route tracking and resolve mo… - #61

Merged
kumar-veerendra merged 1 commit into
mainfrom
fix/analytics-setup
Jul 31, 2026
Merged

kumar-veerendra merged 1 commit into
mainfrom
fix/analytics-setup

Conversation

@kumar-veerendra

Copy link
Copy Markdown
Owner

This pull request introduces Google Analytics 4 (GA4) tracking to the frontend, improves the backend seeding process for company guides, and includes several bug fixes and enhancements for code reliability and user experience. The most important changes are grouped below.

Analytics Integration and Security:

  • Added Google Analytics 4 (GA4) integration to the frontend, including environment variable support, gtag.js script injection in index.html, and a new trackPageView utility that tracks SPA page views via React Router. [1] [2] [3] [4] [5]

Backend Seeding Enhancements:

  • Implemented a new seedCompanyGuides function that seeds and upserts company and guide data, ensuring all company guides are published and featured. Integrated this seeding process into both the database connection and standalone seed script. [1] [2] [3] [4] [5] [6]

Bug Fixes and Code Reliability:

  • Fixed a bug in the code editor where corrupted code templates could be loaded from localStorage by detecting and resetting them to defaults.
  • Improved error handling in the API service by catching and handling JSON parse errors when reading user info from localStorage.

UI/UX Improvements:

  • Updated Monaco Editor styles to remove unwanted focus rings and hide browser extension overlays (e.g., Grammarly) for a cleaner coding experience.
  • Minor UI tweak: hid the "NQTCoder" text label on smaller screens in the ProblemArena header for better responsiveness.…bile arena & editor UI bugs

@vercel

vercel Bot commented Jul 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
kumar-veerendra-nqtcoder Ready Ready Preview Jul 31, 2026 9:17am

@kumar-veerendra
kumar-veerendra merged commit 9482d3a into main Jul 31, 2026
2 checks passed

This branch was successfully deployed

1 active deployment
Preview — 4fbac9d6 Deployed Jul 31, 2026 by vercel[bot]
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.

1 participant