The Enhanced Ecommerce dataLayer sends only the last subcategory to Google Analytics. I've shown which it sends in the first screenshot below
However, I would like the dataLayer to send the full category to Analytics (main category/subcategory etc.). I figured I could somehow use these breadcrumbs 2nd screenshot below.
Those all are list elements in a navigation menu. The list elements don't have an ID or a class, however, the whole menu (navigation) has a class. Is there any way to overwrite the category sent to Analytics with these breadcrumbs?
Here is an example of a dataLayer used:
ecommerce: {
currencyCode: "EUR",
detail: {
products: [
{
name: "Men's waterproof mountain hiking shoes - SALOMON X U" +
"LTRA 3 GTX",
id: "8396527",
reference: "2350488",
price: "115",
category: "Mountain Hiking Shoes",
variant: "272@40, 8396527",
link: "men-s-waterproof-mountain-hiking-shoes-salomon-x-ult" +
"ra-3-gtx",
model_id: "8396527",
price_tax_exc: "95.04",
wholesale_price: "0"
}
]
}
},