google analytics

GeneralPHPWordpress

WordPress – Google Analytics (ga) tracking code as a plugin

For wordpress sites I build, I insert the google analytics (ga) tracking code into the html head section via a plugin. I prefer this ‘cleaner’ approach of separating the code into a separate file. I also use the Wordpress function ‘is_user_logged_in’ to remove most of my visits to the site as I am typically signed in to my WP admin account. This post describes the steps I use…

Read More