15
Views
2
Comments
Solved
[Analytics Plugin (Firebase)] How to clear a firebase User Property
Question
analytics-plugin-firebase
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

I am looking for a way to clear a Firebase User Property previously set using the SetUserProperty action.

According to the documentation on Firebase, you can clear a user property by setting its value to null.
However, in OutSystems 'null' is not a thing, so we can't pass null to the setUserProperty action.

Is there another way to clear the user property?
Maybe it would be useful to have an explicit clearUserProperty action in the plugin that would explicitly pass null in the javascript code?

Kind regards,

Steven

UserImage.jpg
Aravind I
Solution

Hi Steven, 

You can create a JavaScript node in a client action to explicitly call Firebase with 'null'.

firebase.analytics().setUserProperty('property_name', null);

I hope Its helpful.


2020-03-12 15-06-24
Steven Decock

Hi Aravind,

Thanks, that is indeed something we could do. It would however be better if this was something included in the supported Firebase Analytics plugin.

Steven

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.