How can I track page visits on my static website without adding scripts?
Asked by
walnut shell study
I've created a static website that's hosted on Render and it has many pages. I want to track which pages get the most visits, ideally creating a top 10 list. However, I want to avoid adding tracking scripts on every page or going through any complicated setups. I've already spent too much time trying to figure this out with some AI tools but haven't found a solution. Is it possible to track visits simply and efficiently?
Answers
A classic method to track visits is using a 1x1 pixel image as a tracking method. Just set the image's source to URLs that register hits on your server. Capture the requests on your server to list your page visits.
Reply to this answer
You might consider using a tracking script like Google Analytics. But if you want to avoid cookies, check out Umami. Some hosting providers give access logs, but be cautious since they might not always be reliable.
Reply to this answer
If you use Cloudflare Pages to host your site, you can access their free analytics feature without needing to add any scripts to your pages.
Reply to this answer
Since you're hosted on Render, you can analyze their Log Streams or use a tool like GoAccess to review your access logs. This way, you donโt need tracking scripts since the server logs every page request. I had a similar issue with my app, and going server-side was a cleaner solution.
Reply to this answer
Fathom Analytics offers a free tier and could be a good fit for you. It's designed to be really easy to use without heavy setups.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions