Skip to content

Add isSignedIn parameter and click on input field to newsletter signup tracking events#15970

Merged
georgerichmond merged 1 commit into
mainfrom
improve-tracking-newsletter-signup-card
May 26, 2026
Merged

Add isSignedIn parameter and click on input field to newsletter signup tracking events#15970
georgerichmond merged 1 commit into
mainfrom
improve-tracking-newsletter-signup-card

Conversation

@georgerichmond
Copy link
Copy Markdown
Contributor

@georgerichmond georgerichmond commented May 26, 2026

What does this change?

  • Adds isSignedIn (real auth state from useIsSignedIn()) to the value payload on every tracking event in both useNewsletterSignupForm (variant) and SecureSignup (control)
  • Adds a new email-input-focused event fired on email input focus in both branches, covering the missing signed-out funnel step between VIEW and click-button
  • Adds isSignedIn to the preview-open / preview-close events in NewsletterSignupCardContainer

Why?

So we can measure the impact of subsequent UX changes with better data — segmenting by sign-in state and seeing the full signed-out funnel: VIEW → email-input-focused → click-button → open-captcha → submission-confirmed.

Screenshots

No visual changes — tracking only.

@georgerichmond georgerichmond marked this pull request as ready for review May 26, 2026 10:59
@georgerichmond georgerichmond linked an issue May 26, 2026 that may be closed by this pull request
@georgerichmond georgerichmond force-pushed the improve-tracking-newsletter-signup-card branch 2 times, most recently from be68b51 to b74c395 Compare May 26, 2026 13:56
@georgerichmond georgerichmond added the feature Departmental tracking: work on a new feature label May 26, 2026
@georgerichmond georgerichmond force-pushed the improve-tracking-newsletter-signup-card branch from b74c395 to 25729db Compare May 26, 2026 13:59
@georgerichmond georgerichmond merged commit ea49e17 into main May 26, 2026
24 checks passed
@georgerichmond georgerichmond deleted the improve-tracking-newsletter-signup-card branch May 26, 2026 14:08
@gu-prout
Copy link
Copy Markdown

gu-prout Bot commented May 26, 2026

Seen on PROD (merged by @georgerichmond 8 minutes and 21 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve tracking for Newsletter Signup Card

2 participants