I am trying to add some logic to my Shopify store that relies on Google Analytics events on the datalayer. However, when enabling the out-of-the-box tracking for GA4, it seems that most events are not published in the regular format of GA events that we are used to. See the screenshot below; “normally” we see events in the json structure which is marked here as “expected”, however, most events published are in the “odd” format as seen below, where we are missing access to the “ecommerce” attribute that is often present. Is there a way to get the GA events in my datalayer in regular format?
Topic summary
-
Issue: After enabling Shopify’s native GA4 (Google Analytics 4) tracking, the store’s dataLayer (the JS event queue used by GTM/GA) no longer shows events in the familiar structure.
-
Observation: Instead of the expected JSON payload that includes an ecommerce object (used for items, values, and action details), most events appear in an alternate/“odd” format that omits the ecommerce attribute.
-
Evidence: A screenshot contrasts the “expected” vs. observed event structures, highlighting the missing ecommerce object and schema differences.
-
Goal: Obtain GA events in the “regular” dataLayer format to maintain access to ecommerce fields for custom logic.
-
Request: Guidance on configuring Shopify’s out-of-the-box GA4 integration so it publishes events in the standard schema.
-
Status: No answers or workarounds provided yet; the question remains open.
