Customer events - how does it work

Customer events - how does it work

JYH
Shopify Partner
2 0 1

Hi- I followed the instructions here, installed GTM and subscribed to to 'remove_from_cart' event.  Chrome console reports 'Processing data layer push: {event: "remove_from_cart", ...' but when I look at window.dataLayer, the event is not there. What am I missing?

 

I have a GA4 tag that uses the "remove_from_cart" event to trigger a GA4 remove_from_cart event but don't see that event being sent in the network tab either.  Can anyone shed some light on how Pixels work with GTM?

 

screenshot_1011.png

Reply 1 (1)

webanlyst
Shopify Partner
1 0 0

This could be caused by a few possible issues, such as:

  1. Event Subscription Issue: The event might not be correctly pushed into the dataLayer despite being subscribed to.
  2. GTM Tag Configuration: The GA4 tag might not be correctly configured to trigger based on the event in the dataLayer.
  3. Timing Issue: There might be a delay or issue with how and when the dataLayer is processed about GTM.
    Could you show me how you set up your customer event data layer for the remove_from_cart event? You can check my datalayer code and see how I push the remove_from_cart event to the data layer. https://prnt.sc/WV6hO9hHp1vu