Google Analytics is a valuable tool for any website it provide a great way to have insights in how users browse and discover your website. With a little bit of effort it possible to get more out Analytics in this guide we show how to add WordPress authors on blog post into Google Anayltics.

I’m going to make a couple of assumptions before we start the guide.

You have a Google Analytics account and it’s currently on your site. Also using Universal Analytics

You have a WordPress site and have the ability to update and make ammendments to templates

Adding the Author Dimension in Google Analytics

Log into your GA Account

Then Click on Admin, then under Property, go down to Custom Definitions and Click on Custom Dimensions.

Adding the code to WordPress

In wordpress there are multiple ways to build a theme and several methods to add this snippet. To keep this a quick and simple I’m going to add it directly to the template and be doing this on the Twenty Seventeen template. This method should work on most WordPress themes. Alternatively you can add it to the functions.php file.