Full stack web developer, interested in all the things, but especially the web, code, design, Linux, OS X, PHP, WordPress, JavaScript & robots.

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.

Screenshot of Simple Google Analytics plugin admin page.

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.

Leave a comment

Your email address will not be published. Required fields are marked *