I have a question that I’m hoping to resolve. We’re finding that the product sizes are showing up individually in GA (e-commerce) for the same product.
As you can see below, the same product URL is coming through for each of the different sizes in GA. This splits the revenue across each size, but we only want the total revenue for all sizes for the same product.
The issue seems to be the size variants. If we click on size, the URL (variant) changes, so from Google’s perspective, will they pull this in individual URLs for each of the product sizes?
Thanks for the reply, I really appreciate it. I’m aware that the URLs are different for the same product with multiple colours. It’s when you select a particular size that the URL variant changes for the same colour.
I’m a little confused? I know the URLs are different for each colour, that’s not the issue. The issue is when you select a size, it changes the URL variant and reports it in Google Analytics (Product Performance individually, not collectively)
The permalinks are different, so no issues there, just the sizes. I just don’t know how to exclude these.
I’ve checked the product list in Admin and there are colour variations for each URL - which is fine.
When you change variants, it will show different URLs according to “url?variant=id-variant” structure which is Shopify default structure. You can check all Shopify sites, they will all have the same structure.
If you want to remove it, please go to theme.js file, find ‘window.history’ and remove the code here: