android - Reset user_id value in firebase analytics -
actual event logs taking few hours reflects on dash board. using debug view analyse events.
my app has login logout feature. app can used multiple users.
on successful login, calling firebaseanalytics.getinstance(context).setuserid("user id").
then after further logs goes under given user id. till good. if login different user user id doesn't change , logs events goes under previous one.
how reset user id on each login call?
you can remove user id setting null or replace new user id. userid user property goes events after set need set null when user logs out , set new user id when different user logs in.
Comments
Post a Comment