How to Count Live Users And Clicks


#1

Hey everyone, can anyone help me to count live users on my app. And i also want to get total clicks in my app. There are 2 button in my app amd i want to get how many user clicked which button and then decide the results of the game. Then after that another game session starts…
Please any help is appreciated. Thank you.


#2

Hi @sharadranjann

Open this link https://nmd-apps.jimdo.com/ looking for the source to buy by @Mika
Read this too How to add score counter in game app


#3

Hello there :smiley:

Here is one way to count the users :smiley:
blocks(2)


How to show user online in app chat?
How to check that How many users are online in thunkable App
#4

Very much Thanks @Nice_kode4 and @sultani for helping me!!


#5

Your welcome
Happy thunkable


#6

You’re so very welcome :smiley:


#7

It is not working… Always showing 1…


#8

Try it on multiple devices :smile: then it will work


#9

Wow! I forgot this… Tnx


#10

how to fix?
eroro

rule
{
“rules”: {
“users”: {
“$uid”: {
“.read”: “$uid === auth.uid”,
“.write”: “$uid === auth.uid”
}
}
}
}


#11

You have to save tag “online” like a list, the append block works only with list :+1:
Try to save an empty list under tag online and then try again the block in the pic
edit: :point_up_2:THIS :point_up_2: probably get an error in some condition.


#12

Sorry,Goldking

I do not understand
Do you have any samples?


#13

You have to work with lists :point_down: because “append” works only with lists


#14

Check solved if error is fixed. :+1::wave::wave::wave:


#15

Thank you ,Goldking

I’m test Code , run Error message

e1

firebase
fb

Code

Code
e3


#16

@sutinunp
The error is because you are adding a list to an integer which is not possible.


#17

MY WAY :point_down:


AS @Vaibhav_Patil said if you use a list you can’t add an integer with a list but only with item’s list


#18

amazing, Thank you
I went to the test and report later.


#19

hi how are u, i cant find the block global online.


#20

The block global on line is a variable. You find it empty and you can chose all the names you want.