Thanks I lost half a day only looking for the way to grab information from an Array. Thank you keep up!
@Eriickvanbuuren3 жыл бұрын
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
@shyamthakur12014 жыл бұрын
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 Жыл бұрын
Man, that was my problem! I wad looking for it's reason for 2 days and now, finally... Thanks!
@aces-agenciademarketingdig8503 Жыл бұрын
Thank You so much Guy. You solve my problem in minutes after hours finding this solution. Best Regards.
@onurkaradeniz5692 жыл бұрын
Great Video, thanks a bunch especially for the last part. I was going nuts and was actually using [0] instead of 0. :) Thank you!
@pratheeshkumarcoolturbo3 жыл бұрын
Man... you saved my time... thank you sooo much.. :) :)
@bryanchu16934 жыл бұрын
Awesome video, this saved my butt, thank you so much!!
@MeasureSchool4 жыл бұрын
Haha, butt saved. Love it!
@edithortegalabastida27624 жыл бұрын
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!!!
@danielfelipelopezvargas34012 жыл бұрын
This helps me a lot , thank you dude
@eduardokempner9 ай бұрын
thanks man, saved my day! cheers
@DDDpinball Жыл бұрын
Super usefull and well explained!
@aparnanambissan71203 жыл бұрын
Thank you so much!! This was super helpful!!
@thalesmigueldelima45025 жыл бұрын
Simply amazing, your videos are all helpfull, keep them up coming. Best!
@PromineInc2 жыл бұрын
Hey! Hello! Your are amazing, Thank you for the great content! 👌🏻
@LeeLulu-wn9uw2 жыл бұрын
thak a lot !!! save me a lot of time !!!
@MiyamotoM3 жыл бұрын
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?
@Xboxers3 жыл бұрын
I'm wondering this also!
@hisham4evr2 жыл бұрын
Same doubt, pls reply Julian
@nicholaspistone18472 жыл бұрын
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.
@mitch50202 жыл бұрын
thank you!
@user-cj9dh8qp2b4 ай бұрын
thank u so much
@JuanIgnacioLX6 ай бұрын
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.
@gediminasstankevicius36274 жыл бұрын
Great video. Thank Julian!
@salmanou89003 жыл бұрын
Thanks a lot ❤️❤️ useful tips, keep it up ❤️
@rolandoskar30345 жыл бұрын
Awesome. Thank Julian!
@davidkho8913 күн бұрын
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.
@JansonSmith2 жыл бұрын
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!
@slyasassin2 ай бұрын
How do you multiply the values of price and quantity and send that as a parameter for value?
@fabians.25683 ай бұрын
Oh my Gosh i wasted 2 Days to find out, just to totally understand anything now in 10 Mins? :)
@funnellmarketing20763 жыл бұрын
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".
@nicolasgomez52072 жыл бұрын
loop
@muhammadyousuf2944 Жыл бұрын
@@nicolasgomez5207 how to do that?
@muhammadyousuf2944 Жыл бұрын
@funnellmarketing2076 you got answer?
@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.
@DrumKen194 жыл бұрын
Thank you so much!
@weronikajezewska37952 жыл бұрын
why I dont see ecommerce when I write "dataLayer" in console ? Thanks a lot for answer from anyone
@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 Жыл бұрын
when i push datalayer after 5 sec. in extenison google tag assistant datalayer didn't push . may i know why
@huseynhuseynov80984 жыл бұрын
@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?
@johnnyrandak9602 жыл бұрын
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.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
@huseynhuseynov80984 жыл бұрын
@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 Жыл бұрын
Hi, Have you got the answer?
@muhammadyousuf2944 Жыл бұрын
@@huseynhuseynov8098 Hi, Have you find any answer?
@musk. Жыл бұрын
@@muhammadyousuf2944 unfortunately not.
@huseynhuseynov8098 Жыл бұрын
@@muhammadyousuf2944 no, I didn't
@ma7alkom5803 жыл бұрын
I do like it thank you ;) Julian
@johnattanorjuelabriseno53654 жыл бұрын
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?
@vitorribeiro34482 жыл бұрын
tks!!!!
@aricahyosuminar80222 жыл бұрын
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_Duarte212 жыл бұрын
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
@Om31922 жыл бұрын
Could you please share this e-commerce website for our practice?
@findtheoddgame2 жыл бұрын
The currency data layer variable returns UNDEFINED. How to fix Julian? Pls, help! I am using wordpress.
@karthickrajalearn3 жыл бұрын
How to store it our google sheet I need logs when 8 run my ad
@carlosbucheli75693 жыл бұрын
The "data layer" tab doesn't exist anymore... Where can we see the data?
@srinivasprabhunv23133 жыл бұрын
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?
@benjaminsupermega5823 жыл бұрын
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?
@alexdelargerebel3 жыл бұрын
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?
@MeasureSchool3 жыл бұрын
yes
@alexdelargerebel3 жыл бұрын
@@MeasureSchool I'm your fan, thank you for teaching us.
@darrenthomas25913 жыл бұрын
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?
@Seomartin5 жыл бұрын
cool
@Bymaroo34075 жыл бұрын
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.
@MeasureSchool5 жыл бұрын
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.
@Bymaroo34075 жыл бұрын
@@MeasureSchool Thank you Julian for your response! is there any software that generate the server side code for you?
@MoJo014 жыл бұрын
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.
@bettercallsaul61452 жыл бұрын
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 🤨
@nathanielpatterson58555 жыл бұрын
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!
@MeasureSchool5 жыл бұрын
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)
@anudeeplakanavarapu15112 жыл бұрын
@@MeasureSchool can you explain about this more where if i have 1-100 products
@vijayamarnath75052 жыл бұрын
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.
@davidbrownless42783 жыл бұрын
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.902 жыл бұрын
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.
@macho65964 жыл бұрын
How do setup to allow the data layer to pull info from the cart?
@georginaallen77503 жыл бұрын
After doing this, can you then make a custom report using the filter option Custom Variable, then define metrics (e.g. revenue)?
@MeasureSchool3 жыл бұрын
depends on the tool
@SvenGeorgiev3 жыл бұрын
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
@MeasureSchool3 жыл бұрын
as Julian maybe sees questions, but don't know how to answer them..... he leaves it up to the community to answer them
@SvenGeorgiev3 жыл бұрын
@@MeasureSchool haha. Sorry. My comment was not supposed to Sound rude.
@seoprojects78194 жыл бұрын
Also, Thorugh this video I tried to implement the data layer in the GTM but did not worked...
@dragosmirica9484 жыл бұрын
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
@MeasureSchool4 жыл бұрын
yes, that could be the case. With some JavaScript you could rewrite it into a number
@dragosmirica9484 жыл бұрын
@@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!
@stantan9885 жыл бұрын
How do you report on those data from the dataLayer in Google Analytics?
@MeasureSchool5 жыл бұрын
first you would need to send it to GA, via an Event or Pageview and then lookup the correct report to see the data
@louisdechenne5 жыл бұрын
@@MeasureSchool Hello Julian, I'm not clear on how to pull the sent data from GA.
@tusharmalpote42334 жыл бұрын
@@MeasureSchool Can you please create a short video on this subject
@johnphilipose58433 жыл бұрын
Can this datalayer be used to pull information from webpages and used for mass schema implementation using gtm
@MeasureSchool3 жыл бұрын
yes, theoretically
@sandibenec4 жыл бұрын
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!
@ashkanahmadi4 жыл бұрын
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
@MeasureSchool4 жыл бұрын
the order number can be used to deduplicate records. Google Ads uses it for example
@seoprojects78194 жыл бұрын
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...
@weborntolead53324 жыл бұрын
@MeasureSchools @Julian Please tell me how to send and display data Layer variable value of GTM to the third party Software????
@weborntolead53324 жыл бұрын
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.?
@agungsukariman3 жыл бұрын
How to record all product data in array?
@MeasureSchool3 жыл бұрын
by creating it that way in the dataLayer in the first place. Then you don't have to mess with recording it
@robbiefilipovic46335 жыл бұрын
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
@MeasureSchool5 жыл бұрын
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
@robbiefilipovic46335 жыл бұрын
@@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
@robbiefilipovic46335 жыл бұрын
I changed the trigger-event from pageview to window loaded, works now!
@srinivasankamalakannan33755 жыл бұрын
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.
@MeasureSchool5 жыл бұрын
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.
@skeepskeeperson5 жыл бұрын
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.
@MeasureSchool5 жыл бұрын
good tip, if you prefer that method
@user-zn5tn9br3b4 жыл бұрын
I always think, why I can't catch the price data with gtm directly, why the page must have a datalayer ...
@MeasureSchool4 жыл бұрын
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
@andersprivateaccount4 жыл бұрын
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.
@andersprivateaccount4 жыл бұрын
Using the DemoShop is like when math textbooks use the easiest problem where everything works out well as an example
@OriginalRandomz4 жыл бұрын
Look at this cry baby haha
@preethisakthi11904 жыл бұрын
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..
@MeasureSchool4 жыл бұрын
i don't understand
@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?