Minimal Google Analytics snippet.

A code snippet for tracking page views with Google Analytics on your website

If you use GA, you can try this minimal tracking code snippet to help bring the extra page weight from 75kb down to just 1.5kb.

I’ve been using (the self-installed) ‘On-Premise’ Matomo for a while. (I like the pain of doing something new live and always looking to reduce my dependence on Google.) Matamo is a good replacement for Google Analytics if you’re after simple site analytics. It even works on shared hosting, but it can be quite slow.

Can I go…?

So for the last month, I’ve been a little occupied with canigo.sg.

What started out as a mental compilation of answers for my mum and my wife’s parents during Singapore’s Covid breaker circuit breaker measures turned into a website, which then turned into a frequently visited source of information for Singaporeans.

The site has served up more than 4 million page views so far. That wouldn’t have been possible without some wonderful support from Hostinglah despite me being on their cheapest tier. I pinky-promise to upgrade when I have to renew.

It is truly humbling when people continually contribute to the store of knowledge on canigo.sg. Some write to us in appreciation of the site’s utility, and to compliment the (wife’s) humour and wit. All this feels a lot more meaningful and gratifying than all the design accolades and advertising awards we’ve won in our careers (or getting name-checked by the national newspaper.)

To be honest, everyone will be most happy when no one has to visit canigo.sg which would mean we’re past the circuit breaker period, and hopefully the pandemic as well.

Stay safe and please don’t consume disinfectants, ok?