by dangrossman · 10y ago · 0 comments
W3Counter was a 12-year-old website offering web stats reports and hit counters with 30-something-thousand users. I ditched all the old code, and the data model, and the business model, and started from scratch. New framework, new way of storing and analyzing stats that scales better and provides more value, and snazzy new design (I hope; design was never my strong suit).
The most awesome part for me was throwing out all the old code. Not having to continue developing in and supporting a framework that barely runs in a modern environment. It's going over well so far. The transition was pretty seamless.
You can watch the traffic from this comment as it comes in at https://www.w3counter.com/stats/1/visits
New: Web stats reports for as many websites as you have for free, with no requirement to display a counter/badge, and no ads on the reports. It's no longer an ad-supported service, just freemium. Users can now upgrade individual websites in their account to paid plans while others remain free, like Cloudflare (I really like how their subscription model works). The per-website upgrade unlocks extended data retention so you can run reports further into the past (no more tiny logs), real-time dashboards, daily/weekly/monthly e-mail summaries of your stats, and conversion tracking features for businesses that sell things and want to track their advertising/promotions.
Was it worth it? From a business standpoint, I don't know if I'll make any more or less money this way. I take big risks that way sometimes. Time will tell. From a personal standpoint, I'll be much happier any time I need to dive into the code to add or change something. Old code needs to die eventually one way or another, just because you can't rely on old language/environment packages forever, lest they pass their EOL and stop getting security updates.
New: Node.js for data collection, Redis for data caching, Amazon Aurora for data storage, Cloudflare/ELB/EC2 for frontend serving, and the web app rebuilt in modern PHP (with Silex).