Firebase Analytics Filter By User ID

后端 未结 3 1887
执笔经年
执笔经年 2021-02-08 10:22

The Firebase Android SDK for analytics provides a method named setUserId(String id), now i enabled firebase logging and every time i called the method setUser

相关标签:
3条回答
  • 2021-02-08 10:28

    In audience you have to select contains, exactly match or regular expression for a field.

    So to filter for a user you have to add all your users to the audience, which looks cumbersome.

    Isn't using setUserProperty is better? Have you faced any problems with using it ?

    0 讨论(0)
  • 2021-02-08 10:36

    I was scratching my head with this issue. Initially, I felt so dumb when I could not find how to use user id for filtering in Firebase analytics dashboard that I am setting with official API setUserId(). When I try to look for answer, I realized that I am not the only one. Finally, this is how I was able to filter events based on user id.


    In Android Code, I set user id using setUserId() method. When I read bigQuery has this property as user_id, I thought to give it a try by adding a new user property in Firebase Dashboard with the hope that it will fetch the reported id.

    And... that worked...Now I can filter new events based on user id.

    0 讨论(0)
  • 2021-02-08 10:41

    I have spent a few hours on this and found the answer i was looking for more or less, hopefully this might save someone else some time.

    The only way to filter by Firebase's User Id property is by creating an audience, there you will be able to pick the user id property that is supplied from the setUserId(String id) method.

    It is a downer though because you won't see any events for the user/user's you want from before the audience was created.

    0 讨论(0)
提交回复
热议问题