How to count clicks with javascript?

后端 未结 8 2238
予麋鹿
予麋鹿 2020-12-01 22:14

Can I count clicks on links with javascript?

8条回答
  •  借酒劲吻你
    2020-12-01 22:59

    You should count these requests server-side, either straight from the web server logs or from the code that resolves the ?id=1234 to load the actual content.

    Don't count requests coming from the page author that you gave the ID to, assuming you have some way to tell (a login, a cookie, an IP address) -- this part would be easier from your code rather than the server logs.

提交回复
热议问题