I would like to know how can I implement a hidden hit counter. I want to do this because I want to have an raspberry pi project were a light goes on every time the website get a hit, but I don’t want to show the counter on the website.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is a website right? Then you can simply have the counter inside a
divlike this:And hide it using CSS:
This way, the counter will be present in the DOM and it won’t be visible in the viewport. 🙂