Skip to content

ensure trial analytics identity stitching with fingerprint headers#4411

Open
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-8
Open

ensure trial analytics identity stitching with fingerprint headers#4411
ComputelessComputer wants to merge 1 commit intomainfrom
c-branch-8

Conversation

@ComputelessComputer
Copy link
Collaborator

  • Add getHeadersWithFingerprint() in auth context to guarantee x-device-fingerprint in desktop API requests, even when fingerprint is not yet cached.
  • Replace getHeaders() with getHeadersWithFingerprint() in:
    • billing trial checks/start
    • onboarding trial start
    • connections
    • calendar OAuth list
  • Fix auth analytics sequencing in trackAuthEvent:
    • prevent INITIAL_SESSION from suppressing SIGNED_IN
    • dedupe identify and user_signed_in independently
    • await identify/event calls to reduce race conditions

Why: user_signed_in and trial_started were not reliably linked for some new users due to missing fingerprint header timing and auth event suppression.

Replace getHeaders with getHeadersWithFingerprint across billing,
calendar, onboarding, and settings components to ensure device
fingerprint is always included in API requests. Add new async method
that fetches fingerprint if not cached and improve auth event
tracking to prevent duplicate user identification and sign-in events.
@netlify
Copy link

netlify bot commented Mar 5, 2026

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit d36cb60
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69a96dffccfb3c0008c3df38
😎 Deploy Preview https://deploy-preview-4411--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Mar 5, 2026

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit d36cb60
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69a96dffb257f400082b29b9
😎 Deploy Preview https://deploy-preview-4411--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ComputelessComputer
Copy link
Collaborator Author

/staging

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

Branch Commit Status
c-branch-8 d36cb609 View

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