Skip to content

MAR-227: Add GA4 signup_complete event for accurate conversion tracking#96

Merged
derensdima22 merged 5 commits intodevfrom
feat/ga4-signup-complete
Mar 24, 2026
Merged

MAR-227: Add GA4 signup_complete event for accurate conversion tracking#96
derensdima22 merged 5 commits intodevfrom
feat/ga4-signup-complete

Conversation

@phwizard
Copy link
Copy Markdown
Contributor

Summary

Fires signup_complete GA4 event only after successful new account creation — not on page view or login. Fixes the 2.8x GA4 conversion over-count (220 reported vs 77 actual).

Changes

  • withTracking.tsx: New logSignup() function that fires signup_complete + sign_up GA4 events. Also made logLogin() actually fire a GA4 login event (was a no-op returning an object).
  • GoogleButton.tsx: logLoginlogSignup for new registrations (existing user login unchanged)
  • FacebookButton.tsx: Same
  • MetamaskButton.tsx: Added logSignup after successful registerSignature
  • RegisterForm.tsx: logLoginlogSignup for email registration
  • FirstStep.tsx: Same
  • ThirdStep.tsx: Same (temp password flow)

GA4 Events

  • signup_complete — custom event with: method (google/facebook/metamask/email), user_id, email_domain
  • sign_up — standard GA4 event with: method
  • login — standard GA4 event (logLogin now functional)

Test plan

  • Register new account via email — check GA4 DebugView for signup_complete event
  • Register via Google OAuth — same check
  • Login with existing account — should fire login event, NOT signup_complete
  • Verify no duplicate events

phwizard and others added 5 commits March 24, 2026 09:29
MAR-227: Fires signup_complete + sign_up GA4 events only after
successful new account creation (not on page view or login).

Changes:
- withTracking.tsx: add logSignup() that fires gtag signup_complete
  with method, user_id, email_domain
- GoogleButton.tsx: logLogin → logSignup for new registrations
- FacebookButton.tsx: same
- MetamaskButton.tsx: add logSignup after registerSignature success
- RegisterForm.tsx: logLogin → logSignup for email registration
- FirstStep.tsx: same
- ThirdStep.tsx: same (temp password flow)

Existing logLogin calls for returning users unchanged. logLogin now
also fires GA4 login event (was a no-op before).

This fixes the 2.8x GA4 conversion over-count: GA4 reported 220
conversions but backend had 77 actual signups because the event
was firing on page view instead of actual account creation.
@derensdima22 derensdima22 merged commit c4a3ed8 into dev Mar 24, 2026
3 checks passed
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