How to use a dataLayer variable to pull data from the GTM dataLayer [Quick Tip]

How to use a dataLayer variable to pull data from the GTM dataLayer [Quick Tip]

MeasureSchool

5 лет назад

106,152 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Николай Миронов
Николай Миронов - 13.08.2023 19:46

Man, that was my problem! I wad looking for it's reason for 2 days and now, finally... Thanks!

Ответить
Sithu Win
Sithu Win - 14.06.2023 10:57

when i push datalayer after 5 sec. in extenison google tag assistant datalayer didn't push . may i know why

Ответить
Bintang Azhari
Bintang Azhari - 07.03.2023 05:34

Hi Julian, thanks for the sharing. It's really helpful. Regarding the last part of the video, do you know how to pull all the products data? is there any like wildcard so I can pull both product name/price in a single variable? Thanks

Ответить
Nayab Siddique Shaik
Nayab Siddique Shaik - 28.02.2023 12:17

For first product, we will be adding "ecommerce.purchase.products.0.price" datalayer variable. But for SECOND product, we should be using the "ecommerce.purchase.products.1.price" no?

Ответить
Laurens
Laurens - 02.12.2022 11:32

Super usefull and well explained!

Ответить
ACES - Agência de Marketing Digital
ACES - Agência de Marketing Digital - 02.10.2022 21:41

Thank You so much Guy. You solve my problem in minutes after hours finding this solution. Best Regards.

Ответить
Weronika Jeżewska
Weronika Jeżewska - 01.08.2022 17:06

why I dont see ecommerce when I write "dataLayer" in console ? Thanks a lot for answer from anyone

Ответить
Ari Cahyo Suminar
Ari Cahyo Suminar - 29.07.2022 08:28

Hi julian great video and this is exactly what I'm facing off right now. Do we have to write it one by one or can we simply copy the path from last key we want those value extracted. Thanks a lot

Ответить
Nicholas Pistone
Nicholas Pistone - 28.07.2022 22:46

Thank you! This was really helpful. I just created a data layer variable to identify user type and create segments for different classes of logged-in users. I'm thinking I will create a Tag+Trigger that fires on window load events and captures the user type and sends it to GA as the event action or something like that. Then I'll create a segment for users with that event to sort each type into its own segment.

Ответить
Find The Odd Game- How Quickly Can You Find?
Find The Odd Game- How Quickly Can You Find? - 06.07.2022 11:19

The currency data layer variable returns UNDEFINED. How to fix Julian? Pls, help! I am using wordpress.

Ответить
Debashish Mahanta
Debashish Mahanta - 25.06.2022 13:10

Could you please share this e-commerce website for our practice?

Ответить
johnny randak
johnny randak - 15.06.2022 01:59

Hey Julian I love your videos. I've been learning from you for years now! Hey this is a really basic question—what are the benefits of using data layers and creating events with them? I did some hunting for the high level answer to this question online and was having trouble finding one. Are they mainly used for audience creation? Deduplication? Are data layers more important for eCommerce businesses than other businesses? Thanks for your time!

Ответить
Onur Karadeniz
Onur Karadeniz - 07.06.2022 15:30

Great Video, thanks a bunch especially for the last part. I was going nuts and was actually using [0] instead of 0. :) Thank you!

Ответить
Janson Smith
Janson Smith - 26.04.2022 17:03

Thanks for the video. Do you know how to pull the transaction value in GTM if if it's only displayed at the checkout page, and not on the order confirmation? I want the purchase value to go into GTM when a purchase is made, but this info is only provided on the checkout page, not on the order confirmation!

Ответить
Daniel Felipe López Vargas
Daniel Felipe López Vargas - 10.04.2022 09:41

This helps me a lot , thank you dude

Ответить
M Franco
M Franco - 23.03.2022 23:20

Hello, thanks for the great content. I was able to see all the datalayer and also made the configuration on GTM, but now, I cannot see the same objects on the data layer, for example, ecommerce object is not anymore on the data layer and because of that, can't get the variables on debug mode of GTM. Do you know why is this? What can happened that cause this error on my website? Thank you so much.

Ответить
Mitch
Mitch - 17.03.2022 04:52

thank you!

Ответить
Promine
Promine - 02.03.2022 21:12

Hey! Hello! Your are amazing, Thank you for the great content! 👌🏻

Ответить
Vitor Ribeiro
Vitor Ribeiro - 17.02.2022 16:26

tks!!!!

Ответить
Vijay Amarnath
Vijay Amarnath - 29.11.2021 20:12

Hi Julian. Your videos have been incredibly helpful. Just had a weird case with my shop, the dataLayer variables are getting captured properly inside GTM debug mode but they are not passing it over to the Facebook Pixel. This is happening only for the Purchase event. What could be causing this?

Just for context, my ViewContent and AddToCart events are capturing custom variables properly which are being used for Dynamic Product Ads.

Ответить
UzuMakii_Alan
UzuMakii_Alan - 16.11.2021 21:45

Hello, how are you? It is possible to extract information from the data layer transforming it into variables " Example: skuStocks: {15362: 48}". Turn it into a variables "skuStocks "15362", this through GTM? I tried to isolate this number and it always returns [object Object]. Tks

Ответить
Better Call Saul
Better Call Saul - 10.10.2021 04:22

Heyhey, what if you would like to have a conversion in Google ads for every product you have sold? (Lets say we only have 5 products in shop) Can I create a Tag for every product and make it fire by reading out the data layer event based on product name and trigger it based on a rule like - if custom variable matches product name value? But would be difficult because you can’t compare multiple dot notations at the same time 🤨

Ответить
Lee Lulu
Lee Lulu - 20.09.2021 08:19

thak a lot !!! save me a lot of time !!!

Ответить
Carlos Bucheli
Carlos Bucheli - 12.08.2021 02:37

The "data layer" tab doesn't exist anymore... Where can we see the data?

Ответить
KARTHICKRAJA
KARTHICKRAJA - 08.08.2021 15:26

How to store it our google sheet

I need logs when 8 run my ad

Ответить
David Brownless
David Brownless - 02.08.2021 05:45

wondering if anyone can help me with this issue:

Have to set up Facebook API and am sending emails as PII, this has already been set up as a DLV.
However, the conversion point comes a page or two after they input their email. Given the DLV refreshes for every new page load is there a way I can store the email or push the DLV value into the new page?

any experience or links to relevant help would be much appreciated!

Ответить
Eriick Méndez
Eriick Méndez - 21.07.2021 02:09

OMG! A lot of thanks, this video has returned my soul to its place, to get the info from a DLV (Array - Object) into a Floodlight conversion

Ответить
Sven Georgiev
Sven Georgiev - 30.06.2021 17:50

Hi, as Julian wont see or answer this - this question is for anyone who tested this - its 2021 - does anyone know of DataLayer push problems with a Wix page? I defined a Dlv variable with the value GTM showed me for that particular key. But when I check the list of variables upon the action on the Wix pg that is supposed to push that key then it simply states its undefined. The key I defined is in the list of variable with the name I gave it but there is no value. What could be the reason? Thanks

Ответить
John Philipose
John Philipose - 18.06.2021 18:51

Can this datalayer be used to pull information from webpages and used for mass schema implementation using gtm

Ответить
Aparna Nambissan
Aparna Nambissan - 17.06.2021 23:39

Thank you so much!! This was super helpful!!

Ответить
Salman OU
Salman OU - 22.05.2021 16:05

Thanks a lot ❤️❤️ useful tips, keep it up ❤️

Ответить
Funnell Marketing
Funnell Marketing - 04.05.2021 16:59

I really liked this and love your videos. One thing I'm not sure of – I could have any number of products. Is there a more elegant way of pulling this information and pushing it to the dataLayer than simply writing loads of datalayer variables? I mean eventually you'd just give up and say "well, I've written like 30 datalayer variables, and if someone gets 31 products then I guess we just won't be able to grab the 31st item in the array".

Ответить
Darren Thomas
Darren Thomas - 03.05.2021 23:49

How would I add a datalayer snippet to a form on my website so it passes a specific name in the form class and click class?

Ответить
Srinivas Prabhu N V
Srinivas Prabhu N V - 24.04.2021 08:00

Is it possible to clear data variables between page views? As I have one event that has different parameters sent in each page. And some parameters are relevant only to a certain page. So the persisting of data layer variables between pages gives me some incorrect data. Can you help me with this?

Ответить
Ma7alkom
Ma7alkom - 27.03.2021 15:22

I do like it thank you ;) Julian

Ответить
pratheesh kumar
pratheesh kumar - 26.02.2021 13:48

Man... you saved my time... thank you sooo much.. :) :)

Ответить
Alejandro C.
Alejandro C. - 13.02.2021 00:50

when i pulled data from the data-layer on a custom variable? How do I sent the information to GA? do I need to create a new tag with the value in it?

Ответить
Benjamin Super Mega
Benjamin Super Mega - 28.01.2021 10:03

I was thinking about this data layer. How does the data layer get into my website code? Is it automatically installed when I installed the google tag manager, or it comes as default on my website as long as I have JavaScript on my website?

Ответить
Agung Sukariman
Agung Sukariman - 06.12.2020 11:25

How to record all product data in array?

Ответить
Miyamoto M
Miyamoto M - 04.12.2020 08:55

Do i need separate variable for every array (0,1,2,3,4 etc.) or can it be done by some sort of rule in one variable?

Ответить
Georgina Allen
Georgina Allen - 11.11.2020 16:30

After doing this, can you then make a custom report using the filter option Custom Variable, then define metrics (e.g. revenue)?

Ответить
Edith Ortega Labastida
Edith Ortega Labastida - 24.08.2020 12:16

Thank you so much for the video, it helped me to find out why I couldn't get the info that I wanted from the DataLAyer and now my tag's are working perfectly!!!

Ответить
Shyam thakur
Shyam thakur - 23.08.2020 20:57

Great sir .....this video solves my issue of pull product name through dataLayer.

Thank you so much for the great content in the video ...

God Bless you sir

Ответить
seo projects
seo projects - 01.08.2020 08:59

Also, Thorugh this video I tried to implement the data layer in the GTM but did not worked...

Ответить
seo projects
seo projects - 01.08.2020 08:58

I have purchased your course at udemy but I refunded because there are nothing complete pinterest Tag With GTM.. Add to cart with prodcuct id... and cechkout with product id.. Please help...

Ответить
We Born to Lead
We Born to Lead - 29.07.2020 13:11

@MeasureSchools @Julian Please tell me how to send and display data Layer variable value of GTM to the third party Software????

Ответить
Johnattan Orjuela Briseño
Johnattan Orjuela Briseño - 16.06.2020 00:22

Hola, do all websites have the same structure in dataLayer variables or does that depend on the webmaster? For a website to display dataLayer, what must it implement?

Ответить
Kend19
Kend19 - 10.06.2020 17:55

Thank you so much!

Ответить
KyouKo
KyouKo - 23.04.2020 12:42

I always think, why I can't catch the price data with gtm directly, why the page must have a datalayer ...

Ответить
Ashkan Ahmadi
Ashkan Ahmadi - 02.03.2020 23:58

Hi. Thank you for the great content as usual. I was wondering, what's the benefit of having things like order number? I'm tracking the value of the purchases through the dataLayer you showed in the other videos and beside the value and currency for the Facebook Pixel, I was wondering what other information I should include in the pixel and why. For example, I know I can see the amount spent and the value generated directly from Facebook Ad Reports but what can I do with the order number, or pulling any other information from an order.
Thanks

Ответить