How many people see my firebase records?

1

Develop an app with and , I currently have an object called publications and I would like to know how many users see these posts in my app

imagen publicaciones

Is there a method that tells me how many users interact with the publications, or do I need to insert that information into my firebase database?

What I have researched these last 2 days tell me that I can use google analytics but I do not know how to consult that information and show it to my users.

Thanks in advance.

    
asked by juan carlos sanchez 26.07.2018 в 23:19
source

2 answers

0

Yes, for metrics it is best to use Google Analytics. Just keep in mind that this information is for internal use and you will not be able to show it to users in the way you want.

The other solution is to create a field in the database (views) and update it (views ++) every time someone sees that article. So you can know how many "views" each publication has had and show it in an easier way to your users.

    
answered by 26.07.2018 в 23:38
0

As I answered in stackoverflow in English, the only way to count those users would be to add a node in each post that is called for example cantidadvistas and in this way save the users who open the post

lst_publications
  |____publication1
    |            |___ cantidadvistas 
    |                    |____userid = true
    |                    |____userid2 = true
    |                    |____.....
    |
    |___description
    |___empresa
    |.....

then in quantities you only use a getChildrenCount() and you would get the amount in Long from the people who saw that post, that way you can know how many users saw something.

    
answered by 27.07.2018 в 01:29