• Hi,

    I have a contest website which links to various external websites. What I would like to do is to have a little number next to the link which will increase each time a user clicks it to record the number of clicks/entries to the website.

    I am wondering the best way to do this? Maybe by a cookie?

    If anyone has any suggestions, that would be great.

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It depends on what’s important in the recording of clicks. Cookies can work, but they only accurately record clicks if the same device/browser is used. You could store data in user meta, but then all users must log in in order to get counted.

    If cheating must be prevented, cookies are a very poor choice. Only the keeping of data server side can hope to be secure from cheating. Even then, cheating is possible, depending on several factors. It’s difficult to securely prevent cheating while not making the requirements so stringent no one wants to participate. Security and ease of use tend to be mutually exclusive. Middle ground will always be a trade off.

Viewing 1 replies (of 1 total)
  • The topic ‘Recording clicks based on cookies?’ is closed to new replies.