简体   繁体   English

如何跟踪和显示所有用户点击按钮的总次数?

[英]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.

相关问题 如何计算一个按钮在网站上被点击的次数? - How can I count the amount of times a button has been clicked on a website? 如何制作一个 function 来跟踪单击按钮的次数 - How to make a function that keep tracks of the amount of times a button has been clicked 如何跟踪是否已单击按钮? - How to keep track if a button has been clicked already? 通过单击按钮的次数更改按钮的文本 - Change text of button by the amount of times it has been clicked 跟踪并显示用户单击我网站上的按钮的次数 - Track and display how many times users have clicked a button on my website 我如何获得一个按钮来执行多项任务,具体取决于单击了多少次? (JavaScript) - How can i get one button to do multiple tasks depending on how many times it has been clicked? (Javascript) 如何检查是否点击了facebook按钮? - How can I check if a facebook like button has been clicked? 显示按钮被点击的次数 - Displaying how many times a button has been clicked 如何获得一个按钮被单击的次数的变量,将其在线存储然后在以后访问? - How do I get a variable of the number of times a button has been clicked, store it online and then access it later? 如何使按钮显示在javascript中单击的次数? - How do I make a button display the number of times it's been clicked in javascript?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM