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