I not getting events in datalayer

Topic summary

Missing Google Tag Manager (GTM) dataLayer events on a Shopify store. Reported absent events include page_view, view_item, and add_to_cart, which appear correctly on another store for comparison.

Multiple users confirm they are also receiving no data from the dataLayer. The issue is consistent across different stores for some participants.

A key follow-up asks which Liquid (Shopify’s templating language) code is used to implement the dataLayer, suggesting the problem may stem from how the dataLayer is generated or injected.

Images/screenshots comparing a working store versus a non-working store are central to understanding the discrepancy, but no code or configuration details have been shared yet.

Status: Ongoing and unresolved. No fixes or concrete outcomes reported. Next step requested is to provide the Liquid code used for the dataLayer so troubleshooting can proceed.

Definitions:

  • dataLayer: A JavaScript array/object that GTM reads to capture events.
  • Liquid: Shopify’s templating language used to output dynamic content and scripts into theme files.
Summarized with AI on February 2. AI used: gpt-5.

I am running a Shopify store and set up Google Tag Manager, I debug my store in google store manager,
And there I not getting events like “page_view”, “view_item” and “add_to_cart”.

Those events I can see on another store, There working properly. please see the screenshots.

Please help me How I Can fix it?

@shpify

Thanks

Sivan

1 Like

I’m similarly getting nothing from the datalayer :confused:

@Josh_Uebergang @Jay_JUNKbrands @ogeid

Please help me to fix this issue.

I am having the same issues

What liquid is used in your dataLayer?