Skip to content

Ethan/hover tracking#16

Open
MokeyCodes wants to merge 1 commit intomainfrom
ethan/hover-tracking
Open

Ethan/hover tracking#16
MokeyCodes wants to merge 1 commit intomainfrom
ethan/hover-tracking

Conversation

@MokeyCodes
Copy link
Copy Markdown
Collaborator

@MokeyCodes MokeyCodes commented Mar 7, 2026

Implement function to track Hover time over button + Minimum Threshold

Team Member Names: Ethan Nguyen-Huu

Summary

Created a function to track hover time and applied to Contact page

Code Changes

app/api/hooks/TrackPage.ts

  • Created function to track hover time over component
  • Added a feature to only POST to /api/track if hovered for longer than 5 seconds (5000 ms)

app/contact/components/ContactScrollSection.tsx

  • Applied function in …/track/route.ts to test hover time using the cards in the contact page.

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

Screenshot 2026-03-06 at 11 02 08 PM

Edited file name to trackHover.ts, and added sessionId, replacing the userId
@MokeyCodes MokeyCodes force-pushed the ethan/hover-tracking branch from cd7a4f3 to 1487b68 Compare April 1, 2026 03:33
@MokeyCodes
Copy link
Copy Markdown
Collaborator Author

Switched file name from TrackPage.ts to trackHover.ts.

Added sessionId to trackHover.ts
Screenshot 2026-03-31 at 8 37 21 PM

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