Potential issue with dataLayer event push on Transaction
Opened this issue · 0 comments
colemichaelwenger commented
This repo was an amazing discovery and really helped with my store setup. I appreciate the work!
I did have a question with the Transaction event. If I'm reading this code correctly here, https://github.com/TechnicalWebAnalytics/dataLayer-shopify/blob/master/dataLayer-allPages.js#L517-L527, it's only pushing a Transaction when debug mode is on. Is this the intended behavior? I noticed I started losing transaction data when I turned off debug. I can leave it on and be fine, but its just cleaner and feels better to have it off when in prod. But I didn't know if there was an intention behind this or if it was an error. Thank you!