Skip to content

How do I set UserInfo anonymousId? #233

Closed
@nwagu

Description

@nwagu

Describe the bug
I would like to set the anonymousId for a user, preferably when calling identify, but there is no overload of that method that allows this. Is there any other way to do this I am missing?

I have considered setting this in the EnrichmentClosure, but this only changes the anonymousId for the identify event. Other events still contain the random anonymous id generated internally by this lib.

To Reproduce
n/a

Expected behavior
I should be able to set anonymousId for a user from the client.

Screenshots
n/a

Platform (please complete the following information):

  • Library Version in use: 1.16.3
  • Platform being tested: Android
  • Integrations in use: Amplitude

Additional context
n/a

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions