Closed jeromehardaway closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
vets-who-code-app | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 17, 2024 5:35am |
This pull request primarily focuses on integrating Google Analytics into the application. The Google Analytics ID has been added to the environment variables in both the local and production environments. Additionally, the Google Analytics script has been included in the
Head
component of theMyDocument
class in_document.tsx
. This script will only be included if the Google Analytics ID is present.Changes to environment variables:
env.local
andenv.production
: Added theNEXT_PUBLIC_GOOGLE_ANALYTICS_ID
environment variable to both files.Integration of Google Analytics:
src/pages/_document.tsx
: Added the Google Analytics ID to theMyDocument
class and included the Google Analytics script in theHead
component. The script will only be included if the Google Analytics ID is present.