WordPress Category Tracking with Google Analytics

There are many plugins including Monster Insights for Google Analytics that charge a hefty fee for implementing category tracking in WordPress for Google Analytics. However, there is one plugin that offers this functionality for free. Read on to learn how to configure the plugin and setup Google Analytics to track WordPress Categories.

Why Category tracking in Google Analytics?

Google Analytics by default tracks pages by URL. But website owners need to understand the performance of the site section-wise to figure out which sections work better and which sections needs improvement. Since WordPress already categorises the posts published, if Google Analytics can track the Categories, then website owners can take informed decisions based on the section (category) wise performance of their websites.

1. Install GADWP Plugin and enable category tracking. Search the Plugins repository for GADWP, install and activate the plugin. 

2. Go to Google Analytics menu in Dashboard > General Settings and authorize the Google Analytics account by providing the key. Then select the profile from drop down and lock it using the “Lock” button.

3. Select “Tracking code” (1 in below screenshot) from Google Analytics on the left menu, then select “Custom Definitions” (2 in below screenshot), and then select the custom dimensions from the drop down menu and save changes.

4. Then login into Google Analytics and navigate to the Admin section, select the Profile that needs to be configured for category tracking. Select “Custom Definitions” under Property and select “Custom Dimensions”.


5. Setup the Custom Dimensions in the same order as in the plugin by using the “+New Custom Dimension” button. First create Authors, followed by Publication Year, Publication Month, Categories, User Type and Tags. Now Google Analytics is all set to track Categories.

Accessing the Category reports

The category wise report can be accessed from any report on Google Analytics using the “Secondary Dimension”

Google Analytics > Behavior > Site Content > All Pages > Custom Dimensions > Category

But there is a better way to see the aggregated data easily without having to consolidate on excel. Setup a custom report. Just head to Custom Reports in Google Analytics.

1.  Customization > Custom Reports > New Custom Report> Give it a name and the select

2. Metric Group: Pageviews

3. Dimension Drilldowns: Categories

4. Save the report.


Now the report will appear as follows:


Leave a Reply

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