If you are creating content to attract visitors to your site, you probably are wondering which content is more successful at accomplishing this goal.
Google Analytics, by default, lets you analyze the pages by URL, but if you have a logical structure on your pages, you probably would like to analyze by those categories.
By setting up Content Grouping, you can analyze how your content is performing by the categories you specify. For example, you could categorize the content by your business pages and blog pages.
I will go through the example of how to categorize a site with the following grouping: Business Pages, Blog Pages and Glossary Pages.
The categories will be configured in the Admin section of Google Analytics:
Select the view you wish to configure the category and click on Content Groupings:
**Remember it it always recommended to test this on a Test View first
And now you will be presented with a few options:
- Group by Tracking code: will require help from you IT department (if you have one)
- Group by Extraction: will require help from your IT dept.
- Group by Rule definitions: Categorized by using page titles, page URLs or screen names. This is very simple to do if you have a structure on your site and I will show here how to do configure this.
Configure Content Grouping using Rule Definitions
Our sample site has three levels types of content:
- The Business pages, where the page title starts after the domain name: example.com/page-title
- The Blog pages, where the post title starts after /blog: example.com/blog/post-title
- The Glossary pages, where the glossary title starts after /blog/glossary/glossary-title
If you don’t have different URL for your business pages and post pages, you need to set this up before continue reading.
Once you have the URL structure set up, you can start setting up the rules. First Give a name to the group of rules, for example, Site Content.
Business Pages Rules:
Blog Pages Rules:
You probably don’t have glossary pages and in that case your rule should be: Page Contains /Blog
IMPORTANT! It is important that you set the rules in the right order. Google Analytics will stop verifying the next rule if the previous rule is met.
In our case, it looks for pages without /blog/ in the URL, if it finds them, stops and sets the content as Business Page, if the URL has /blog/ it will continue to the next rule. If the URL does not contain /glossary/ it will set the content as Blog Page but if it does, it will continue to the next rule and set the content as Glossary Page.
Once you have tested you rules, move the configuration to your reporting view and start analyzing your content!
Analyze the content based on your new Categories
You will find your brand new categories in the Behaviour > Site Content > All Site Pages section:
Content groupings are also available in other content reports like: landing pages, Site Speed > Page Timings and Behavior Flow.
Now, in this example, the Business Pages are not doing so well…They should be reworked to perform better:
If you have an eCommerce site, you can group your content by product type, size, etc…
What does (not set) mean in these reports?
You can get (not set) as a content category if:
- Your categories are not covering all the URL combinations available for your site or
- your selected range date is previous the date you configured your groups. Google Analytics does not set the content groups retroactively.
Last but not least, remember to create an annotation of when you configured your groupings, it can be useful later on.