Skip to content

Ethan/hover tracking#16

Open
MokeyCodes wants to merge 2 commits intomainfrom
ethan/hover-tracking
Open

Ethan/hover tracking#16
MokeyCodes wants to merge 2 commits intomainfrom
ethan/hover-tracking

Conversation

@MokeyCodes
Copy link
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

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