Skip to content

Ryan/link email#14

Open
theryanfo wants to merge 2 commits intomainfrom
ryan/link-email
Open

Ryan/link email#14
theryanfo wants to merge 2 commits intomainfrom
ryan/link-email

Conversation

@theryanfo
Copy link
Collaborator

@theryanfo theryanfo commented Mar 3, 2026

ryan/link-email

Summary

Connected email signup form to the backend API to track email submissions. Added functionality to capture sessionID, email, sourcePage, and timestamp and store it in the Supabase database. Note: The sessionID is not yet implemented fully, so the current code just creates a random string to store as the sessionID.

Code Changes

  • EmailSignupForm.tsx:
    • updated handleSubmit to send email data to the backend API at /api/track.
    • Added sessionID (temporary random string generator) and sourcePage to track where the user signed up.
    • Updated the payload to include email, timestamp, sessionID, and sourcePage.

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Other: (Fill In)

Checklist

  • I have reviewed my own code.
  • I have removed unnecessary comments and print statements from my code.
  • I have tested my code.

Screenshots

image

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