A simple Google Analytics WordPress plugin
I’ve created a simple WordPress plugin. It’s called Simple Google Analytics. Can you guess what it does?
Yup, you guessed it, it allows WordPress site owners to quickly install their Google Analytics tracking code.
Apart from that, the only other feature is hidden — the plugin only outputs the tracking code if the user is not logged in.
I’ve installed the plugin on this site, but I’m not sure anyone else will find it useful as there are a lot of Google Analytics plugins already available for WordPress, obviously. Reinventing the wheel is stupid, but I enjoyed writing it, and besides, it was good practice.
If you fancy taking a look at the code, you can find it on GitHub.