Skip to content

feat(tracking): add user identification methods and enhance event tra… #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 24, 2025

Conversation

goldflag
Copy link
Collaborator

…cking

  • Introduced window.rybbit.identify, window.rybbit.clearUserId, and window.rybbit.getUserId methods for managing user identification across sessions.
  • Updated documentation to include examples for user identification and event tracking workflows.
  • Enhanced tracking payload schema to include an optional user_id field for associating events with identified users.
  • Implemented logic to persist user ID in localStorage and retrieve it during script initialization.

…cking

- Introduced `window.rybbit.identify`, `window.rybbit.clearUserId`, and `window.rybbit.getUserId` methods for managing user identification across sessions.
- Updated documentation to include examples for user identification and event tracking workflows.
- Enhanced tracking payload schema to include an optional `user_id` field for associating events with identified users.
- Implemented logic to persist user ID in localStorage and retrieve it during script initialization.
Copy link

vercel bot commented May 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rybbit ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 24, 2025 4:51am

@goldflag goldflag merged commit 34009fa into master May 24, 2025
5 of 6 checks passed
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