Shopify's Data Layer

Ecommer
Tourist
5 0 1

Hi there, we're considering moving to Shopify (We're using Magento at the moment)

We also currently use Google Tag Manager (GTM) to integrate the javascript code for 3rd party apps, Analytics Tools and to setup tracking pixels and tags to track things like Conversions in Google Analytics, Adwords and BingAds.

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.

 

Nathan_Le
Shopify Partner
71 0 12

Hey there,

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.

Facebook Ads, Google Adwords & Google Analytics - my passion and that's what I can help you with right now.
0 Likes
Ecommer
Tourist
5 0 1

Hi Nathan

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.

0 Likes
Ecommer
Tourist
5 0 1

Any Shopify Developers or someone from Shopify able to jump in here?

0 Likes
Jason
Shopify Expert
10037 119 1873

I assume you've already reviewed the docs to see the Liquid objects, AJAX API and App API. What info are you unable to find or need beyond that?

★ Winning Partner of the Build a Business competition. ★ http://freakdesign.com.au
0 Likes
Ecommer
Tourist
5 0 1

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?

0 Likes

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

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes
AustinBecker
Tourist
7 0 4

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

0 Likes