Let me explain my issue better, the question phrasing was a little bit confusing. I want a global "clicks" document to update each time that a user clicks in an HTML element in my webpage. This is easy enough to do with the standard functions and by giving the user permission to update the content in the "clicks" document. The problem is that I don't want the user to have the full authority to change the document's properties freely. I just want to receive the click and update the database. The reason is that if the user can do whatever he wants with the clicks property then it will not be indicative of anything.
Any help is received, thank you in advance!