Solved

Clean user property

  • 7 July 2021
  • 1 reply
  • 43 views

If I update a user property value to null on segment identify, Amplitude doesn't change user property value and it shows previous value. It seems to be an issue on Amplitude’s API side. What can I do to clean/empty value??

icon

Best answer by MikkoKarvonen 8 July 2021, 14:15

If I update a user property value to null on segment identify, Amplitude doesn't change user property value and it shows previous value. It seems to be an issue on Amplitude’s API side. What can I do to clean/empty value??

 

This is a side effect of how user properties are updated in Amplitude: by default you only need to set them once or when they change, so when the value of the property is null, Amplitude assumes it has not changed and keeps the previous value.

I would suggest using some non-null value in the user property for these users. “Undefined” or something like this. You can still filter these values out of any charts you make, and it also allows you to differentiate between users that had the property set at some point and those that have never had it set in the first place.

View original

1 reply

Userlevel 4
Badge +2

If I update a user property value to null on segment identify, Amplitude doesn't change user property value and it shows previous value. It seems to be an issue on Amplitude’s API side. What can I do to clean/empty value??

 

This is a side effect of how user properties are updated in Amplitude: by default you only need to set them once or when they change, so when the value of the property is null, Amplitude assumes it has not changed and keeps the previous value.

I would suggest using some non-null value in the user property for these users. “Undefined” or something like this. You can still filter these values out of any charts you make, and it also allows you to differentiate between users that had the property set at some point and those that have never had it set in the first place.

Reply