Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
How create product category in Google Analytics?
-
Hi,
I have a lot of product in my GA ecommerce. Does anyone how I can split my product by product categories in Analytics?
E.g. Category: Blue cars, category: Yellow cars ...
-
Hi,
You should find your answer in this link: https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce#overview
But essentially you will have to use something like:
ga('ec:addImpression',{ // Provide product details in an impressionFieldObject. 'id':'P12345', // Product ID (string). 'name':'Android Warhol T-Shirt',// Product name (string). **'category':'Apparel/T-Shirts', // Product category (string).** 'brand':'Google', // Product brand (string). 'variant':'Black', // Product variant (string). 'list':'Search Results', // Product list (string). 'position':1, // Product position (number). 'dimension1':'Member' // Custom dimension (string).});But you need to specify the Field Object in the top line. Read the link I sent you and should be all self explanatory.
I hope this helps
Issa
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Explore more categories
-
Chat with the community about the Moz tools.
-
Discuss the SEO process with fellow marketers
-
Discuss industry events, jobs, and news!
-
Chat about tactics outside of SEO
-
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
-