No video

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

  Рет қаралды 107,688

MeasureSchool

MeasureSchool

Күн бұрын

Пікірлер: 115
@molardsouvenirs
@molardsouvenirs 4 жыл бұрын
Thanks I lost half a day only looking for the way to grab information from an Array. Thank you keep up!
@Eriickvanbuuren
@Eriickvanbuuren 3 жыл бұрын
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
@shyamthakur1201
@shyamthakur1201 4 жыл бұрын
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
@user-yp1up6gu6m
@user-yp1up6gu6m Жыл бұрын
Man, that was my problem! I wad looking for it's reason for 2 days and now, finally... Thanks!
@aces-agenciademarketingdig8503
@aces-agenciademarketingdig8503 Жыл бұрын
Thank You so much Guy. You solve my problem in minutes after hours finding this solution. Best Regards.
@onurkaradeniz569
@onurkaradeniz569 2 жыл бұрын
Great Video, thanks a bunch especially for the last part. I was going nuts and was actually using [0] instead of 0. :) Thank you!
@pratheeshkumarcoolturbo
@pratheeshkumarcoolturbo 3 жыл бұрын
Man... you saved my time... thank you sooo much.. :) :)
@bryanchu1693
@bryanchu1693 4 жыл бұрын
Awesome video, this saved my butt, thank you so much!!
@MeasureSchool
@MeasureSchool 4 жыл бұрын
Haha, butt saved. Love it!
@edithortegalabastida2762
@edithortegalabastida2762 4 жыл бұрын
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!!!
@danielfelipelopezvargas3401
@danielfelipelopezvargas3401 2 жыл бұрын
This helps me a lot , thank you dude
@eduardokempner
@eduardokempner 9 ай бұрын
thanks man, saved my day! cheers
@DDDpinball
@DDDpinball Жыл бұрын
Super usefull and well explained!
@aparnanambissan7120
@aparnanambissan7120 3 жыл бұрын
Thank you so much!! This was super helpful!!
@thalesmigueldelima4502
@thalesmigueldelima4502 5 жыл бұрын
Simply amazing, your videos are all helpfull, keep them up coming. Best!
@PromineInc
@PromineInc 2 жыл бұрын
Hey! Hello! Your are amazing, Thank you for the great content! 👌🏻
@LeeLulu-wn9uw
@LeeLulu-wn9uw 2 жыл бұрын
thak a lot !!! save me a lot of time !!!
@MiyamotoM
@MiyamotoM 3 жыл бұрын
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?
@Xboxers
@Xboxers 3 жыл бұрын
I'm wondering this also!
@hisham4evr
@hisham4evr 2 жыл бұрын
Same doubt, pls reply Julian
@nicholaspistone1847
@nicholaspistone1847 2 жыл бұрын
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.
@mitch5020
@mitch5020 2 жыл бұрын
thank you!
@user-cj9dh8qp2b
@user-cj9dh8qp2b 4 ай бұрын
thank u so much
@JuanIgnacioLX
@JuanIgnacioLX 6 ай бұрын
Amazing video, thank you! Quick question: I want to push the parameter "User" everytime someone logs in my website. How can I do it? This parameter is NOT in the data layer for some reason.
@gediminasstankevicius3627
@gediminasstankevicius3627 4 жыл бұрын
Great video. Thank Julian!
@salmanou8900
@salmanou8900 3 жыл бұрын
Thanks a lot ❤️❤️ useful tips, keep it up ❤️
@rolandoskar3034
@rolandoskar3034 5 жыл бұрын
Awesome. Thank Julian!
@davidkho89
@davidkho89 13 күн бұрын
Hi all, I would like to know if a value I've already pushed into the datalayer will be cleared when navigating to a new page? I am dealing with a thank you page. Before this, I had already push the info to the datalayer, but it seems that the data disappears when changing pages, so the thank you page doesn't receive the customer's information.
@JansonSmith
@JansonSmith 2 жыл бұрын
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!
@slyasassin
@slyasassin 2 ай бұрын
How do you multiply the values of price and quantity and send that as a parameter for value?
@fabians.2568
@fabians.2568 3 ай бұрын
Oh my Gosh i wasted 2 Days to find out, just to totally understand anything now in 10 Mins? :)
@funnellmarketing2076
@funnellmarketing2076 3 жыл бұрын
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".
@nicolasgomez5207
@nicolasgomez5207 2 жыл бұрын
loop
@muhammadyousuf2944
@muhammadyousuf2944 Жыл бұрын
@@nicolasgomez5207 how to do that?
@muhammadyousuf2944
@muhammadyousuf2944 Жыл бұрын
@funnellmarketing2076 you got answer?
@funnellmarketing2076
@funnellmarketing2076 Жыл бұрын
@@muhammadyousuf2944 I'd just use the GA4 ecommerce schema now, and get a developer to push the items as part of an items array.
@DrumKen19
@DrumKen19 4 жыл бұрын
Thank you so much!
@weronikajezewska3795
@weronikajezewska3795 2 жыл бұрын
why I dont see ecommerce when I write "dataLayer" in console ? Thanks a lot for answer from anyone
@BintangAzhari-lh7nj
@BintangAzhari-lh7nj Жыл бұрын
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
@sithuwin5412
@sithuwin5412 Жыл бұрын
when i push datalayer after 5 sec. in extenison google tag assistant datalayer didn't push . may i know why
@huseynhuseynov8098
@huseynhuseynov8098 4 жыл бұрын
@MeasureScholl - Hi, Julian. Could you please give some source for the information about how to track or pull data when a user initiate checkout or purchase for more than 1 product?
@johnnyrandak960
@johnnyrandak960 2 жыл бұрын
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!
@musk.
@musk. 4 жыл бұрын
Thanks, Julian. One thing I don't understand is creating DLVs for multiple products in a checkout. There's a similar comment below for adding up the price of all products in a cart, but I didn't understand your response to that either. In this example, there are two products but the price of product 1 only corresponds to the first product in the shopping cart, right? My my shopping cart has 3 products and i only have one DLV for product 1 price, are the rest not summed up? Is there a simple solution for getting the total price after a transaction? The data layer and javascript are still very new to me. Thanks again
@huseynhuseynov8098
@huseynhuseynov8098 4 жыл бұрын
@MeasureScholl - Hi, Julian. Could you please give some source for the information about how to track or pull data when a user initiate checkout or purchase for more than 1 product?
@muhammadyousuf2944
@muhammadyousuf2944 Жыл бұрын
Hi, Have you got the answer?
@muhammadyousuf2944
@muhammadyousuf2944 Жыл бұрын
@@huseynhuseynov8098 Hi, Have you find any answer?
@musk.
@musk. Жыл бұрын
@@muhammadyousuf2944 unfortunately not.
@huseynhuseynov8098
@huseynhuseynov8098 Жыл бұрын
@@muhammadyousuf2944 no, I didn't
@ma7alkom580
@ma7alkom580 3 жыл бұрын
I do like it thank you ;) Julian
@johnattanorjuelabriseno5365
@johnattanorjuelabriseno5365 4 жыл бұрын
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?
@vitorribeiro3448
@vitorribeiro3448 2 жыл бұрын
tks!!!!
@aricahyosuminar8022
@aricahyosuminar8022 2 жыл бұрын
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
@Alan_Duarte21
@Alan_Duarte21 2 жыл бұрын
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
@Om3192
@Om3192 2 жыл бұрын
Could you please share this e-commerce website for our practice?
@findtheoddgame
@findtheoddgame 2 жыл бұрын
The currency data layer variable returns UNDEFINED. How to fix Julian? Pls, help! I am using wordpress.
@karthickrajalearn
@karthickrajalearn 3 жыл бұрын
How to store it our google sheet I need logs when 8 run my ad
@carlosbucheli7569
@carlosbucheli7569 3 жыл бұрын
The "data layer" tab doesn't exist anymore... Where can we see the data?
@srinivasprabhunv2313
@srinivasprabhunv2313 3 жыл бұрын
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?
@benjaminsupermega582
@benjaminsupermega582 3 жыл бұрын
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?
@alexdelargerebel
@alexdelargerebel 3 жыл бұрын
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?
@MeasureSchool
@MeasureSchool 3 жыл бұрын
yes
@alexdelargerebel
@alexdelargerebel 3 жыл бұрын
@@MeasureSchool I'm your fan, thank you for teaching us.
@darrenthomas2591
@darrenthomas2591 3 жыл бұрын
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?
@Seomartin
@Seomartin 5 жыл бұрын
cool
@Bymaroo3407
@Bymaroo3407 5 жыл бұрын
Thank you Julian for the enlightening tips! i would like to know how the data layer push in variable values is it by a java script right but does the java script pull out this value from the cms? just want to know the technical process and the chain that's going on. it makes it easy to master analytics once you got a granular idea on how's things going from the starting point.
@MeasureSchool
@MeasureSchool 5 жыл бұрын
you would need to write some server side code that generates the javascript that will push the data to the dataLayer. GTM itself can't access your CMS as it only runs on your Browser.
@Bymaroo3407
@Bymaroo3407 5 жыл бұрын
@@MeasureSchool Thank you Julian for your response! is there any software that generate the server side code for you?
@MoJo01
@MoJo01 4 жыл бұрын
Your questions is what actually missing from almost so far every tutorial and video. How to build the data object in the first place and what is the process from A to Z. Like virtually how the flow works. I have to make a lot of assumption to conceptualize the workflow and reading Google support docs would bore me to extremes.
@bettercallsaul6145
@bettercallsaul6145 2 жыл бұрын
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 🤨
@nathanielpatterson5855
@nathanielpatterson5855 5 жыл бұрын
Hi Julian. Great video. Super Helpful! A few curious questions - Is there a way to add up the product price for all products in the cart? Say from 0-100 or something of that nature? If not is there a way to subtract Shipping and Tax from Revenue? Thanks in advance!
@MeasureSchool
@MeasureSchool 5 жыл бұрын
yes, there is, with JavaScript. You would need to pull these vaues out of the dataLayer and then write your JS to output the values in another variable (usually a custom JavaScript variable)
@anudeeplakanavarapu1511
@anudeeplakanavarapu1511 2 жыл бұрын
@@MeasureSchool can you explain about this more where if i have 1-100 products
@vijayamarnath7505
@vijayamarnath7505 2 жыл бұрын
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.
@davidbrownless4278
@davidbrownless4278 3 жыл бұрын
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!
@m.f.90
@m.f.90 2 жыл бұрын
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.
@macho6596
@macho6596 4 жыл бұрын
How do setup to allow the data layer to pull info from the cart?
@georginaallen7750
@georginaallen7750 3 жыл бұрын
After doing this, can you then make a custom report using the filter option Custom Variable, then define metrics (e.g. revenue)?
@MeasureSchool
@MeasureSchool 3 жыл бұрын
depends on the tool
@SvenGeorgiev
@SvenGeorgiev 3 жыл бұрын
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
@MeasureSchool
@MeasureSchool 3 жыл бұрын
as Julian maybe sees questions, but don't know how to answer them..... he leaves it up to the community to answer them
@SvenGeorgiev
@SvenGeorgiev 3 жыл бұрын
@@MeasureSchool haha. Sorry. My comment was not supposed to Sound rude.
@seoprojects7819
@seoprojects7819 4 жыл бұрын
Also, Thorugh this video I tried to implement the data layer in the GTM but did not worked...
@dragosmirica948
@dragosmirica948 4 жыл бұрын
Hi there, I have a question that I cannot find an answer anywhere even if I struggled a lot to make it work ... I've managed to extract the product price and to create a variable for it. Now I want to have a tag (page view) that will trigger when the price is higher than something. When I use this as the condition nothing is happening. Is it possible the number I extracted to be "seen" as text and not as a number or why is not working? Thanks, Dragos
@MeasureSchool
@MeasureSchool 4 жыл бұрын
yes, that could be the case. With some JavaScript you could rewrite it into a number
@dragosmirica948
@dragosmirica948 4 жыл бұрын
@@MeasureSchool thank for your answer. I've manage to fix it by switching the tag from page view to dom ready. Thank you for your awesome content!
@stantan988
@stantan988 5 жыл бұрын
How do you report on those data from the dataLayer in Google Analytics?
@MeasureSchool
@MeasureSchool 5 жыл бұрын
first you would need to send it to GA, via an Event or Pageview and then lookup the correct report to see the data
@louisdechenne
@louisdechenne 5 жыл бұрын
@@MeasureSchool Hello Julian, I'm not clear on how to pull the sent data from GA.
@tusharmalpote4233
@tusharmalpote4233 4 жыл бұрын
@@MeasureSchool Can you please create a short video on this subject
@johnphilipose5843
@johnphilipose5843 3 жыл бұрын
Can this datalayer be used to pull information from webpages and used for mass schema implementation using gtm
@MeasureSchool
@MeasureSchool 3 жыл бұрын
yes, theoretically
@sandibenec
@sandibenec 4 жыл бұрын
Hi! Your videos are great! I have one problem... I can't get the product name to my facebook pixel on my ecommerce store where the productType is 'variable'. On a simple product I get it just fine with my variable ecommerce.detail.products.0.name ... On my dataLayer everything looks the same and the name is on the same place as with the simple product. What am I missing? Thank you so much in advance!
@ashkanahmadi
@ashkanahmadi 4 жыл бұрын
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
@MeasureSchool
@MeasureSchool 4 жыл бұрын
the order number can be used to deduplicate records. Google Ads uses it for example
@seoprojects7819
@seoprojects7819 4 жыл бұрын
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...
@weborntolead5332
@weborntolead5332 4 жыл бұрын
@MeasureSchools @Julian Please tell me how to send and display data Layer variable value of GTM to the third party Software????
@weborntolead5332
@weborntolead5332 4 жыл бұрын
I will explain you, I have one website and have some fields in that. I want that fields values should be display from data Layer Variable of GTM. So how to send that data Layer Variable value send to my website fields.?
@agungsukariman
@agungsukariman 3 жыл бұрын
How to record all product data in array?
@MeasureSchool
@MeasureSchool 3 жыл бұрын
by creating it that way in the dataLayer in the first place. Then you don't have to mess with recording it
@robbiefilipovic4633
@robbiefilipovic4633 5 жыл бұрын
Hi Julian, great value as usual! I've stumbled upon a little problem and was hoping you could give me some pointers. At first i'd just put 'revenue' for the transaction total which obviously wasn't working (instructions from old vid), luckily I stumbled upon this one. Now when I finish an order in the testarea of GTM the variable finally gets loaded correctly. The FB purchase event also get fired. However when I move into diagnostics of Facebook business manager it says the parameter of value is undefined. Ive tried switching up between '{{dlv-transactiontotal}}' and {{dlv-transactiontotal}}, which gave no different results. Hopefully you can help me out! Thanks
@MeasureSchool
@MeasureSchool 5 жыл бұрын
probably your facebook pixel is firing, when the variable is not yet filled. You would need to inspect that in the debug view by selecting an event on the left side
@robbiefilipovic4633
@robbiefilipovic4633 5 жыл бұрын
@@MeasureSchool I think you are right. Event is set to fire upon reaching the order confirmation page. The variable isnt filled upon pageview though. It starts with pageview, followed by 5 messages, dom ready then page loaded. The variable gets filled on the first message! How could I set this up correctly? Apologies for the late response. Hired some external help to do it but they couldnt figure it out. Hope you can help me out! Thanks
@robbiefilipovic4633
@robbiefilipovic4633 5 жыл бұрын
I changed the trigger-event from pageview to window loaded, works now!
@srinivasankamalakannan3375
@srinivasankamalakannan3375 5 жыл бұрын
Hello Julian thanks for your wonderful video , We want to get the dynamic values for below defined dataLayer window.dataLayerLocalAnalytics=window.dataLayer || []; window.dataLayerLocalAnalytics.push({ 'language': pageLanguage, 'title': title, 'loggedin':pagePath }); . We are able to get the dynamic values for language , title and looged in in developer console but if we use the same path in GTM dataLayer variable we are unable to get it . We used path to get values for title like dataLayerLocalAnalytics[0].title , dataLayerLocalAnalytics.0.title nothing works can you please help here. Quick reply is much appreciated.
@MeasureSchool
@MeasureSchool 5 жыл бұрын
you dataLayer is named dataLayerLocalAnalytics. Obviously GTM doesn't know about your name change and you would need to define this when you initiate the dataLayer.
@skeepskeeperson
@skeepskeeperson 5 жыл бұрын
Maybe an easier way to get the path from the "Chrome" Developer Console would be to find your nested targeted object and right click and then select "Copy property path". With a big note of this will not work in Firefox. The back and forth between GTM and Dev Tools seems way too tedious.
@MeasureSchool
@MeasureSchool 5 жыл бұрын
good tip, if you prefer that method
@user-zn5tn9br3b
@user-zn5tn9br3b 4 жыл бұрын
I always think, why I can't catch the price data with gtm directly, why the page must have a datalayer ...
@MeasureSchool
@MeasureSchool 4 жыл бұрын
because that's the best practice way. If you use scraping (which is possible too), you open yourself up to all kinds of problems, when the website changes
@andersprivateaccount
@andersprivateaccount 4 жыл бұрын
If I had a clear neat list of Enhanced Ecommerce Data Layer Values like the ones you show around 4:10, I wouldn't have to watch all these GTM videos. Really hate that there is no explanation about how to get these values neatly displayed on the data layer in the first place before I worry about adding them as variables or pushing them in events.
@andersprivateaccount
@andersprivateaccount 4 жыл бұрын
Using the DemoShop is like when math textbooks use the easiest problem where everything works out well as an example
@OriginalRandomz
@OriginalRandomz 4 жыл бұрын
Look at this cry baby haha
@preethisakthi1190
@preethisakthi1190 4 жыл бұрын
Thanks for the video.you have said that the GTM variable will remain the same until its gets overwritten but the variable still produces undefined values after it gets assigned ...please change the content and re-upload the video again..
@MeasureSchool
@MeasureSchool 4 жыл бұрын
i don't understand
@nayabsiddiqueshaik2686
@nayabsiddiqueshaik2686 Жыл бұрын
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?
How to Scrape Data Using Chrome Dev Tools and GTM [Quick Tip]
4:45
MeasureSchool
Рет қаралды 26 М.
Data Layer in Google Tag Manager || GTM Data Layer Tutorial with examples
22:33
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 152 М.
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 18 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 2,2 МЛН
Send Customer Information To Facebook (w/Data Layer)
18:10
Vertex Marketing Agency
Рет қаралды 10 М.
Click Element Variable in Google Tag Manager (how to use it correctly)
16:12
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 44 М.
10 Google Tag Manager best practices
14:58
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 9 М.
5 Advanced JavaScript Techniques for GTM
15:34
MeasureSchool
Рет қаралды 21 М.
GA4 for PPC Specialists
24:52
MeasureSchool
Рет қаралды 5 М.
What is DataLayer | Google Tag Manager Tutorial (Updated 2024 edition)
42:47
DataVinci Analytics Agency
Рет қаралды 14 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 354 М.
Google Analytics 4 Form Tracking (Plus 4 Mistakes To Avoid)
18:33
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45