Unable to send GA4 data with adobeDataLayer using GTAG extension | Adobe Higher Education
Skip to main content
November 13, 2021
Beantwortet

Unable to send GA4 data with adobeDataLayer using GTAG extension

  • November 13, 2021
  • 2 Antworten
  • 1107 Ansichten

Hello!

 

I am having difficulty sending data to GA4 using the adobeDataLayer and Acronym's GTAG extension. My rule is successfully fired after the adobeDataLayer.push but an error is causing the GTAG extension to fail.  For example, here is the add_to_cart push.

 

adobeDataLayer.push({ 'event': 'add_to_cart', 'ecommerce': { 'items': [{ 'item_name': 'Donut Friday Scented T-Shirt', // Name or ID is required. 'item_id': '67890', 'price': '33.75', 'item_brand': 'Google', 'item_category': 'Apparel', 'item_category2': 'Mens', 'item_category3': 'Shirts', 'item_category4': 'Tshirts', 'item_variant': 'Black', 'item_list_name': 'Search Results', 'item_list_id': 'SR123', 'index': 1, 'quantity': '2' }] } });​

 

The extension is configured to use ACDL as the dataLayer name.

 

The add to cart rule successfully fires but an error is preventing data from being sent to GA4. 

Any ideas how to resolve this issue?

Thanks!

 

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von yuhuisg

It is possible that the adobeDataLayer's internal specification is incompatible with what gtag expects, even though they appear similar.

2 Antworten

yuhuisg
Community Advisor
yuhuisgCommunity AdvisorAntwort
Community Advisor
November 15, 2021

It is possible that the adobeDataLayer's internal specification is incompatible with what gtag expects, even though they appear similar.

Level 2
November 15, 2021

Instead of using extension, can you try triggering GA analytics using custom code.