[英]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.
因此,例如,如果用户 1 单击该按钮 5 次,而用户 2 打开 Web 应用程序,则该按钮应显示它已被单击 5 次。 How can I go about implementing this?
我该如何去实施这个?
You can simply use an API, firebase您可以简单地使用 API,firebase
If you just mean to track users' actions you can use something like google analytics如果你只是想跟踪用户的行为,你可以使用类似谷歌分析的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.