Comments on: The Complete Guide to Google Analytics Content Groupings https://online-metrics.com/google-analytics-content-groupings/ Google Analytics Courses and Consulting Fri, 04 Feb 2022 11:02:21 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: Paul Koks https://online-metrics.com/google-analytics-content-groupings/#comment-64986 Fri, 04 Feb 2022 11:02:21 +0000 https://online-metrics.com/?p=9984#comment-64986 In reply to Deepak.

Hi, currently only one.
Please see this article for more details on GA4 and content grouping.

]]>
By: Deepak https://online-metrics.com/google-analytics-content-groupings/#comment-64973 Fri, 04 Feb 2022 05:23:22 +0000 https://online-metrics.com/?p=9984#comment-64973 Great Post!
Could you please tell me in GA4 how many content groups we can make?
and please post the article on content Groping in GA4.

]]>
By: Paul Koks https://online-metrics.com/google-analytics-content-groupings/#comment-51616 Mon, 05 Oct 2020 07:13:13 +0000 https://online-metrics.com/?p=9984#comment-51616 In reply to Florian.

No problem, glad you got it resolved!

]]>
By: Florian https://online-metrics.com/google-analytics-content-groupings/#comment-51580 Fri, 02 Oct 2020 14:59:29 +0000 https://online-metrics.com/?p=9984#comment-51580 In reply to Florian.

My bad, looks like it actually works. Don’t know why they used another colour ¯\_(ツ)_/¯
Thanks anyway for the post!

]]>
By: Florian https://online-metrics.com/google-analytics-content-groupings/#comment-51579 Fri, 02 Oct 2020 14:55:39 +0000 https://online-metrics.com/?p=9984#comment-51579 Hi Paul,

Thanks for the article.
I noticed the landing content group is deactivated in the API (it is written in grey and not orange as it use to be):
https://ga-dev-tools.appspot.com/dimensions-metrics-explorer/

Do you confirm the same on your side? If yes, any suggestions to get this data via the API?

Thank you for your help,
Florian.

]]>
By: Paul Koks https://online-metrics.com/google-analytics-content-groupings/#comment-51195 Wed, 02 Sep 2020 08:35:50 +0000 https://online-metrics.com/?p=9984#comment-51195 In reply to Laci Fišer.

Hi Laci,

Thanks for the heads up!

To be honest, I hardly use the “extraction” method when setting up content grouping. Not 100% what is causing this not to work – I think some of the characters are not recognized as RegEx in GA.

Could you try out “group using rule definitons” instead and defining three groups.
For example group 1:
\/products\/category\/(bathroom|bathroom\?p=[0-9]{4})$

It should not match “bathroom furtniture” as the $ ends the string.

You can also double check the Regular Expression in the All Pages report.

Hope this helps solving it.

Best,
Paul

]]>
By: Laci Fišer https://online-metrics.com/google-analytics-content-groupings/#comment-51172 Tue, 01 Sep 2020 09:01:44 +0000 https://online-metrics.com/?p=9984#comment-51172 Hi Paul!
Thanks for the great article.
I have a question, I hope you can help me. I’m trying to do content grouping by extraction and I have come up with this regex: \/products\/category\/(.*?(?!-))[\/\?#\W]
I’m trying to extract the part of the URL after the category/, while there are a few different endings to the url. Below you can see a set of URLs which represent all cases that can occur.
/products/category/bathroom
/products/category/bathroom?p=1294
/products/category/bathroom-furniture
/products/category/bathroom-furniture?page=2#product-list
/products/category/bathroom-furniture/favorites?p=1488
/products/category/wardrobe#product-list
I’d like to have these 3 content groups: bathroom, bathroom-furniture, wardrobe

I tested it here https://regex101.com/, it works like a dream but for any reason Analytics is not accepting my RegEx, saying there is something wrong with it. Could you have a look at it and tell me what should I do differently so my Analytics accepts it?
Thanks a million.
Best,
Laci

]]>
By: Paul Koks https://online-metrics.com/google-analytics-content-groupings/#comment-45681 Mon, 19 Aug 2019 06:54:10 +0000 https://online-metrics.com/?p=9984#comment-45681 In reply to RayWu.

Hi Ray,

I might have mixed up the terminology.
“You can have up to 5 content groupings, each of which has an associated index between 1 and 5, inclusive. Each content grouping can have up to 100 content groups.”

The content groups are the different groups within a content grouping and those you can have 100 per each content grouping.

I recommend setting up the content grouping for your main, master view. Not sure whether your ga command works, I have always implemented it via GTM, web developer or manual URL extraction.

Best,
Paul

]]>
By: Paul Koks https://online-metrics.com/google-analytics-content-groupings/#comment-45679 Mon, 19 Aug 2019 06:50:48 +0000 https://online-metrics.com/?p=9984#comment-45679 In reply to Chris.

Hi Chris,

Could you try the RegEx below?
^/[0–9]{1,4}/

Please let me know whether this works. You can check the outcome in the “All Pages” report first.

Best,
Paul

]]>
By: RayWu https://online-metrics.com/google-analytics-content-groupings/#comment-45594 Sat, 17 Aug 2019 01:33:26 +0000 https://online-metrics.com/?p=9984#comment-45594 Very helpful, thanks Paul!
A quick question: since content grouping is view based, and tracking id is property based, if I use the following code to set content grouping, then which view should be changed (assume I have multiple views under the property)?
ga(‘set’, ‘contentGroup1’, ‘blabla’);

Also, can I use ga(‘set’, {hitType:’pageview’, page: ‘/post/123′, contentGroup1:’blabla’}) ?

You say “Within a grouping you can create multiple content groups.”, but google says: “Each content grouping can have up to 100 content groups. ” (https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference), so a little confused.

Thanks a lot!

]]>