Skip to content

Conversation

@utay
Copy link
Member

@utay utay commented Dec 30, 2025

This PR renames visitorId to anonymousId to have more consistent naming across the stack.

@utay utay self-assigned this Dec 30, 2025
* - **Anonymous:** `anonymousId = null`, `distinctId = visitorId`, `isIdentified() = false`
* - **Identified:** `anonymousId = previous visitorId`, `distinctId = userId`, `isIdentified() = true`
* - **Anonymous:** `anonymousId = null`, `distinctId = anonymousId`, `isIdentified() = false`
* - **Identified:** `anonymousId = previous distinctId`, `distinctId = userId`, `isIdentified() = true`
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed the semantics in comments

@utay utay force-pushed the yu/rename-visitor-anonymous branch from 213bf32 to 7b794ca Compare December 30, 2025 14:43
Copy link
Member

@redox redox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@francoischalifour francoischalifour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the 2 package readmes we might want to update:

- Handles visitor and session IDs automatically
+ Handles anonymous and session IDs automatically

@utay
Copy link
Member Author

utay commented Dec 30, 2025

In the 2 package readmes we might want to update:

- Handles visitor and session IDs automatically
+ Handles anonymous and session IDs automatically

Done!

@utay utay merged commit 8e0c26a into main Dec 30, 2025
1 check passed
@utay utay deleted the yu/rename-visitor-anonymous branch December 30, 2025 15:00
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.

3 participants