android - How to create a custom user property for firebase? -
the section on firebase console says that
firebase app can have 25 uniquely named user properties (case-sensitive). should use properties non-variable attributes, such “handedness=right”, “spender=true”.
in firebase documentation property said set way
mfirebaseanalytics.setuserproperty("favorite_food", mfavoritefood);
does mean every user property named k , having value v, need create user property in console "k=v" , set in code setuserproperty(k,v)? so, user property called "favorite_food" having possible values "pasta" , "pizza", 1 needs create 2 new user properties in console "favorite_food=pasta" , "favorite_food=pizza" , set by, say, setuserproperty("favorite_food","pasta")?
for every user property named k, need register entry in "user properties" tab in firebase analytics. every user user property value k=v, need call setuserproperty(k,v)
.
after calling setuserproperty(k,v)
(and after logging events), able filter analytics reports applying user property filter k=v (favorite_food=pizza) .
Comments
Post a Comment