feat(analytics): default GA to TXLookup property (G-19ZRJ9T0CX)#199
Open
jravinder wants to merge 1 commit into
Open
feat(analytics): default GA to TXLookup property (G-19ZRJ9T0CX)#199jravinder wants to merge 1 commit into
jravinder wants to merge 1 commit into
Conversation
Component previously rendered nothing unless NEXT_PUBLIC_GA_ID was set in env, which it never was on Vercel — so prod has had no analytics. Bake the TXLookup measurement ID (hackathon-acf11 / accounts/3000023) as the default and keep the env var as an override (set NEXT_PUBLIC_GA_ID="" to disable on local dev).
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
The
Analyticscomponent inapp/components/Analytics.tsxis already wired intoapp/layout.tsx, but it only renders the gtag snippet whenNEXT_PUBLIC_GA_IDis set in env. That env var was never set on Vercel, so production has been collecting zero analytics.Change
DEFAULT_GA_ID = "G-19ZRJ9T0CX"constant — the TXLookup GA4 property created today (property539004666under hackathon-acf11 / accounts/3000023).NEXT_PUBLIC_GA_ID=""for local dev).What happens on merge
workflow_dispatch.Verifying
After deploy: