Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

127
Views
Is it possible to replace the enhanced ecommerce category in the dataLayer using GTM?

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"
    }
  ]
}

},

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!