How to Update Google Analytics Category to Use Product Type in List Reports

This will show how to change the category attached to products in Enhanced Ecommerce hits to use the native Shopify product type setting

 

Inside of the Admin > Themes > Your Live theme > snippets > navigate to elevar-body-end.liquid.

 

You will then need to find the instances where we have the collection page URL set as the category that looks like this:

Screen Shot 2019-10-01 at 5.03.15 PM

In the theme.liquid there are:

- (2) productDetailView instances

- (1) addToCart instance

- (1) collectionImpression instance

 

And then in checkout.liquid there is (1) one instance. 

 

It involves changing the are circled in red above to instead be:

 category: product.type,

 

This will then set your product type as the primary category shown in the product list reports so you can have the full CTR => purchase data for product & product type combinations. 

Here are the 4 placements:

Screen Shot 2019-10-01 at 4.58.41 PM

 

Screen Shot 2019-10-01 at 4.58.41 PM

Screen Shot 2019-10-01 at 4.58.25 PM

Screen Shot 2019-10-01 at 4.57.59 PM

And then inside of the checkout.liquid you need to change this category setting to be:

'category': line_item.product.type

 

Screen Shot 2019-10-17 at 11.11.46 PM

 

Back to Top 🔝