TLDR · PROGRAMMING, DESIGN & DATA SCIENCE

HOW BEAR DOES ANALYTICS WITH CSS

herman.bearblog.dev4 min read

Summary from the TLDR newsletter

Bear Blog doesn't use client-side JavaScript. This post describes how it logs traffic without using JavaScript or server logs - only CSS. The site triggers a CSS rule whenever a user hovers their cursor over a page that makes a URL request to record data. The resulting system can track unique users without storing IP addresses un-hashed. The code for the system is available in the article.