Skip to content

Cannot specify userId on track events #262

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

Closed
apuig opened this issue Apr 24, 2025 · 2 comments
Closed

Cannot specify userId on track events #262

apuig opened this issue Apr 24, 2025 · 2 comments
Assignees

Comments

@apuig
Copy link

apuig commented Apr 24, 2025

Is your feature request related to a problem? Please describe.
I would like to specify the userId without relaying on userInfo state.

In a test, using the java compatibility:

analytics.identify("user1", JsonObject with traits);
analytics.track("activity1", JsonObject with properties);

sometimes it generates a track event without userId, but regardless of this, I want to be able to send a track without a previous identify.

Describe the solution you'd like
Some signature to send a track event with the desired userId.

Describe alternatives you've considered
After checking Events.kt, looks like its not possible to customize this attribute.

@apuig
Copy link
Author

apuig commented Apr 24, 2025

sorry, just realized its a duplicated issue
#112
#173
#233

workarround does it, but will be nice to avoid these gymnastics

@wenxi-zeng wenxi-zeng assigned wenxi-zeng and unassigned prayansh Apr 25, 2025
@wenxi-zeng
Copy link
Contributor

hi @apuig. glad you found a workaround. besides what you mentioned, we have identified a few optimization needed for the SDK used in server use cases. they are in our roadmap but we just haven't had chance to get to them because other priorities. will get back to you once we have them ready. thanks!

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

No branches or pull requests

3 participants