Solved

If event sent without user_id can later set a user id ?

  • 18 August 2022
  • 1 reply
  • 230 views

Userlevel 2
Badge +1

if the event is sent with no userid and later(for further events) we want to set userid for that event  can we do that..?

icon

Best answer by Nehita I. 19 August 2022, 14:08

View original

1 reply

Userlevel 3
Badge +5

Hi @pawan ,

This is Nehita from Amplitude Support, thanks for writing in to the Community! 

As historical events are immutable, you wouldn’t be able to assign a user ID to an event that has been sent without a user ID. However, in regards to user merging, you can then assign a user ID to new events for the same device ID or Amplitude ID, and the anonymous event would be merged to that user. You can learn more about this here

In charts, all events will be analyzed under that user once the user ID has been assigned, but that specific event that was sent without the user ID won’t have a user ID attached if you look at the user event stream. 

I hope this helps to clarify, but please let me know if you have any questions! 

Best,

Nehita

Reply