Hi, I have racked my brains and read multiple different articles and so far I have managed to make an onClick event which counts clicks and displays this number in a text box.
First, I created a collection titled: LikeButton and gave it a number field titled: yesfield. Then I added an icon button, text box and a dataset to my page. I linked the text box to the yesfield in my collection.
Then I added an onClick event to my icon button and entered this code:
![](https://static.wixstatic.com/media/a27d24_0608410a813e4b938c9cc001812ac051~mv2_d_3442_1617_s_2.jpg/v1/fill/w_980,h_460,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/a27d24_0608410a813e4b938c9cc001812ac051~mv2_d_3442_1617_s_2.jpg)
This achieved the text box displaying the number of clicks, although rather slowly. Now that is mostly working, how do I make it only record unique clicks/unique users clicks? (without people logging in...)
Also how would I go about adding this to my repeater and making a like button work for each and every item? (Each and every item having their own number of likes)
I have no Knowledge of code and have managed to get this far from reading different tutorials, can anyone please give me a code example of what I am trying to achieve, thank you!