简体   繁体   中英

How can I keep track of and display the amount of times a button has been clicked in total by all users?

I am creating a react app and want to keep track of and display the total amount of times a button has been clicked by all users. So for example, if user 1 clicks on the button 5 times and user 2 opens the web app, the button should display that it had been clicked 5 times already. How can I go about implementing this?

You can simply use an API, firebase

If you just mean to track users' actions you can use something like google analytics

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM