How to Add Google Analytics to WordPress With a Simple Plugin

Adding Google Analytics to your WordPress site will help you track who’s been visiting your site, what they’ve been looking at and how they got there. Inserting the tracking code can be tricky, so here’s a neat way to do it with your very own plugin.