Hi there, we're considering moving to Shopify (We're using Magento at the moment)
In order to pass transaction values to Adwords and BingAds we needed to create a dataLayer in Magento which allows us to pull in the different data layer variables and their values.
We hope to create the same setup in Shopify (We will be using the Advanced plan) however I can't find any documentation which lists out the names for all of Shopify's data layer variables?
If anyone can point me in the right direction that would be great.
Interesting discussion. Did you try this app https://apps.shopify.com/google-tag-manager-by-niddocks I see this app can actually get datalayer data from Shopify, so you easily connect it with 3rd aprty services.
I've not looked at apps yet, but knowing that this uses the data layer must mean one exists.
But it would be much more useful to know what the individual variables are so I can create my own tags, triggers and potentially push missing data into the data layer from Google Tag manager.
For example, we currently have a tag setup to pull the cart total out of the data layer and push it into our livechat app so when a cart reaches £100 it triggers a chat to let the user know there is a special bulk order discount and to ensure we don't lose larger orders.
Hi Jason, thanks for responding. I have searched https://developers.shopify.com for datalayer or "data layer" but it doesn't bring anything back that's relevant. Does Shopify refer to it by any other name?
You can create your own datalayers. I suggest ripping off the foundation of Segment: https://community.segment.com/t/k98abg/shopify-store-event-tracking-deprecated
Hope you switched from Magento to Shopify (booo Magento, you don't even work!).
Here's what you were looking for. Hopefully newcomers to this message find this helpful: https://shopify.dev/docs/themes/liquid/reference/objects