Data Layer in Google Tag Manager || GTM Data Layer Tutorial with examples

  Рет қаралды 144,874

Analytics Mania - Google Analytics & Tag Manager

Analytics Mania - Google Analytics & Tag Manager

Күн бұрын

Learn the most important component of Google Tag Manager - Data Layer. Understanding the Data Layer is key to successful Google Tag Manager setups.
- Learn how data is added to the Data Layer (with dataLayer.push).
- Learn how data can be access from the Data Layer (with custom event trigger and Data Layer Variable)
- Learn the 3 most common rookie mistakes that you should avoid at all costs while working with the Data Layer.
=== LINKS ===
Subscribe to our KZbin channel / @analyticsmania
📕 Data Layer Cheat Sheet
www.analyticsmania.com/p/data...
✭ Intermediate-Advanced Google Tag Manager course
www.analyticsmania.com/course...
✭ Video: how to install Google Analytics 4 with Google Tag Manager
• How to Install Google ...
=== TIMESTAMPS ===
00:00 - Intro
00:53 - What is Data Layer
02:00 - How to add data to the Data Layer (dataLayer.push)
09:03 - How to read data from the Data Layer
19:24 - 3 data layer rookie mistakes
21:22 - Final words
=== CONNECT WITH JULIUS & ANALYTICS MANIA ===
✭ Facebook / analyticsmania
✭ Twitter / fedorovicius
✭ Linkedin / fedorovicius
Subscribe to our KZbin channel / @analyticsmania
#googletagmanager #googleanalytics4

Пікірлер: 86
@himanshusaini5316
@himanshusaini5316 Жыл бұрын
You are a lifesaver Julius, literally. ❤️ Lots of respect for you and your work. Just because of all these helpful videos on your channel, I have already made a deal of more than $500 with my client who wants a GA4 and GTM expert for his website. I learned almost everything from your videos💯. Great days ahead!!
@dk_kardboard
@dk_kardboard 3 жыл бұрын
This video was timed perfectly for me. Was having an issue with data layer variable not being set on container loaded. Shared this vid with a dev, and we fixed that. Also - frequent visitor to your site. You have the best Google Analytics/Tag Manager content around. Thanks very much!
@tem_vremenem_v_kanade
@tem_vremenem_v_kanade 10 ай бұрын
THANK YOU, have been trying to fix the data layer push issue for literally a week now, after following a different tutorial. Your suggestion at 20:20 resolved the issue. Simply had to switch to 'DOM Ready' instead of 'PageView' and all the data is now being pushed finally...
@richardisaac1941
@richardisaac1941 2 жыл бұрын
Excellent video thank you! I've been working with GTM for a few months so only now starting to understand the data layer - this really helped
@lingua83
@lingua83 19 күн бұрын
Rewatching this over and over again. This is important knowledge :)
@GabrielMateusLima
@GabrielMateusLima 2 жыл бұрын
This (and the other videos) is the best tutorial about Google Tag Manager in the whole KZbin. Thank you so much.
@muhammadbinashraf8306
@muhammadbinashraf8306 Жыл бұрын
Saved my day. I was stuck in datalayer issue for past 3 days but this video helped me in resolving that issue.
@isaacvicliph6978
@isaacvicliph6978 10 ай бұрын
What an awesome explanation! Thank you, Julius!
@anugrahjundawijaya6277
@anugrahjundawijaya6277 Жыл бұрын
This video is soo comprehensive and answers many of my questions. Really appreciate it Julius!
@martynaspuotkalis4117
@martynaspuotkalis4117 3 жыл бұрын
I have taken courses with Analytics Mania. Low price and tones of practical information. This guys teaches not just makes reviews.
@gizzzr
@gizzzr 3 жыл бұрын
This was great Julius, thank you very much!
@charanraja766
@charanraja766 3 жыл бұрын
3 data layer rookie mistakes - it really helpful - Thanks
@Reque92
@Reque92 Жыл бұрын
What a great teacher Julius is!
@tosinwoghiren6894
@tosinwoghiren6894 Жыл бұрын
Thanks for creating this content Julius. It has been super helpful.
@mikedriver7197
@mikedriver7197 6 ай бұрын
Thanks! Super grateful for this video series. Great job!
@coltonpemberton9586
@coltonpemberton9586 2 жыл бұрын
So super helpful! Thank you so much!
@inspecialhome
@inspecialhome Жыл бұрын
Hi there, awesome tutorial. But still got some questions and hope you could clarify. I was trying to use gtm to track checkout events. However, when initiating a checkout, there was no checkout event recorded in the drop down on the left hand side of the preview mode. Would you say that’s a problem of data no being pushed or the problems of data layer set up? If it’s the problem of data not being push, could it be the problems of my shopify theme code or purely the gtm trigger setup?
@tinos0330
@tinos0330 19 күн бұрын
Thank you for all the work have done!
@laithhaitham5955
@laithhaitham5955 Жыл бұрын
best explaining on yt for this subject
@chingchihuang1063
@chingchihuang1063 2 жыл бұрын
very specific and clear. thank u so much
@sortmyevents10
@sortmyevents10 Жыл бұрын
Hello Julius, great tutorials keep it up! I have the following question: When using GTM does it make sense to add the Tags for GA4 & UA/GA3 if these are already directly connected to a website via: Plugins or coded in the HTML? Thanks
@marcusalves6974
@marcusalves6974 2 жыл бұрын
That was awesome! Thanks!
@ronaldobarreirinhas4770
@ronaldobarreirinhas4770 3 жыл бұрын
Thanks for the wonderful content!
@MartinSauter
@MartinSauter 9 ай бұрын
Very helpful video. Thank you!
@amitavroydev
@amitavroydev 2 жыл бұрын
Great video. Great content and to the point
@eduardokempner
@eduardokempner 2 ай бұрын
great video, thanks man. life saver!
@moibe182
@moibe182 11 ай бұрын
Beautiful tutorial, thanks!!! you just unleashed the power of my tagmanager!!!
@miladtaheri7950
@miladtaheri7950 Жыл бұрын
it was very helpful, thank you!
@tomasgarciapineiro1491
@tomasgarciapineiro1491 2 жыл бұрын
Thank you so much for this tutorial it was very helpful to me
@JK-pr3lu
@JK-pr3lu 2 жыл бұрын
Thank you for this video! I think I understand the concept of the data layer :) In my GA4 Monetization > Ecommerce purchases report I can see my purchases, and the names / number of items purchased. But all the item_view and add_to_cart figures are zero. How can I populate this information in GA4? Which variables are these? which events am I missing? Can you do a tutorial on the Monetization report in GA4? Thanks!
@BeASuccessfulFreelancer
@BeASuccessfulFreelancer 9 ай бұрын
Love from Bangladesh 😊
@mike_charette
@mike_charette 2 жыл бұрын
Thank you so much for this.
@chingchihuang1063
@chingchihuang1063 2 жыл бұрын
I have a question about using datalyer to track. There are so many key and value in the datalayer, can "elementUrl" be tracked? Or only "event, userID, email, etc" these kind of datalayer part can be tracked?
@dkdrums5825
@dkdrums5825 2 жыл бұрын
Great insight
@sihamidam6857
@sihamidam6857 2 жыл бұрын
Thanks for this nice video! It’s solve my problem 👌👌👌👌
@mdshakilmiah3061
@mdshakilmiah3061 3 жыл бұрын
Very Helpful Video sir
@tusharmehtadxb
@tusharmehtadxb 3 жыл бұрын
Good, please let me know if you wrote blog post for this topic. With Data Layer can we capture visitors details; like if he/she can be login with user id, country, time zone, data, time and other information which can be useful for e-commerce website ?.
@cjmarchi
@cjmarchi 6 ай бұрын
amazing content. Thanks!
@gustavolemos4665
@gustavolemos4665 Жыл бұрын
This video helped me a lot! only that my application in React is firing several "formSubmit" events that I created inside a dataLayer. I would like to know where I need to place the formSubmit event to be effective. Thanks!!
@harshitkumar4252
@harshitkumar4252 5 ай бұрын
😍...Really Productive Video ! Thanks Julius
@sepehramini6904
@sepehramini6904 Жыл бұрын
Hi, thanks for the tutorial. I am integrating gtm in my flutter app. how can i see the result of event triggers? I don't see any debug view in GTM!
@cjc89cjc
@cjc89cjc 8 ай бұрын
Via GCP does not enable a custom GTM container code i.e. with the custom domain instead of the Google domain, for implementation?
@SimoneGrimani
@SimoneGrimani 3 жыл бұрын
Great video
@codebayu
@codebayu 5 ай бұрын
Awesome video!!!
@Adotstate23
@Adotstate23 Жыл бұрын
Thank you your the best
@DonHrvato
@DonHrvato 2 жыл бұрын
You are the king
@rolandorodil4508
@rolandorodil4508 Жыл бұрын
Hello Thank you for the help. How to get variables for the value? { event: "Purchase", gtm: { uniqueEventId: 10, start: 1656585860267, scrollThreshold: 90, scrollUnits: "percent", scrollDirection: "vertical", triggers: "3", priorityId: 2 }, eventModel: {currency: "PHP", value: 999, event_category: "Submit"} Should I copy the eventModel or just the value only?
@vichetkem3693
@vichetkem3693 Жыл бұрын
When i used this gtm4WP pluggin, i have difficulty in getting datalayer for items in the data model of GTM after the product been clicked, so then we can further send to GA4.Can you tell is there a way we can push the items of each product sending to GA4?
@MIII96
@MIII96 3 жыл бұрын
Hi, Julius) Thanks for video) I have a couple questions, please, help me) 1) When I choose Custom HTML tag in GTM and write this Data Layer in order to start setting up dynamic remarketing, which Trigger should I choose for Custom HTML tag? Page view or DOM ready? 2) My DataLayer: dataLayer = []; dataLayer.push({ 'ecomm_prodid': 'ecomm_pagetype': 'ecomm_totalvalue': }]; As you can see, I did not write values and here is my question, when I write DataLayer in HTML tag, should I write also values? I am asking because each product has personal value, therefore, I am a little bit confused. 3) The last question is in Variables I should create the exactly certain amount of parameters as in DataLayer, right? P.S.: I am trying to start dynamic remarketing without developer, so I will really appreciate if you advise me what to do. (sorry for my English)
@tojiii3574
@tojiii3574 2 жыл бұрын
Can we pass the value for the google ads conversion without using the dataLayer?
@smkishtiak
@smkishtiak 11 ай бұрын
Thanks!
@rayc6556
@rayc6556 2 жыл бұрын
this is realll gold
@dk_kardboard
@dk_kardboard 3 жыл бұрын
Quick Question: my dev currently did not define an event name with the data layer variables. Is it good enough for me to use page load as my event trigger? -- Also, I am giving the event a name in GTA - and seeing it come through in GA4. Thank you. Thank you.
@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
@hameemislam
@hameemislam 6 ай бұрын
Love it ❤
@sssemNinja
@sssemNinja 3 жыл бұрын
Why didn't U publish this video few years ago ;). Perfect video :)
@wixpress
@wixpress 2 жыл бұрын
* Thanks for Tutorial :)* 🍀
@chaim6768
@chaim6768 9 ай бұрын
Can you do a video on DataSlayer extension? I can't figure out how to change the data layer that I want to view.
@muhammadsolihinshahamir3134
@muhammadsolihinshahamir3134 Жыл бұрын
I still not understand and have few questions. 1. Does data layer same like GTM code or gtag.js code ? Means, just put one code to trigger to all page. Or need to specifically install on every page, button i want to track ? 2. Does i need to customize data layer paramater code for every event ? Because example like purchase, sign up, link click have different parameter value. 3. Do i need to specifically tell developer where exact location of data layer i want to put ? Ex : signup button, checkout page, home tab menu, contact us button etc.
@felipedevel
@felipedevel 2 жыл бұрын
Excelent
@rachelstewart9628
@rachelstewart9628 11 ай бұрын
I am trying to find a tutorial on setting up user defined variables, but haven't found anything. I would love for you to make a video on the basics for this.
@igniteacademic
@igniteacademic Жыл бұрын
Hey Julius, thanks for the great content as always. So do I understand correctly from 1:05 that GTM creates its own data layer when installed? I'm trying to figure out if I need to hire dev resources to implement GTM best practices or if I can do it myself as a non-technical early-stage founder with basically no budget. It sounds like GTM listeners based on my triggers will get whatever I tell them to, so I'm trying to imagine some business use case where a custom-built data layer would solve a problem for me that GTM alone would not. Any ideas? I basically just want to track standard ways customers interact with my tutoring business site (click through pages, fill out forms, watch videos, and eventually book appointments). There's not a lot of user login stuff or anything like that. But tracking anonymous user IDs across different pages would be great. I thought GA4 could do this sort of automatically though?
@AnalyticsMania
@AnalyticsMania Жыл бұрын
Many things to unpack here. - GTM creates an empty data layer when it is launched. - if you want to track bookings, you *might* need to hire a developer. But that depends on the website. It also might be possible to do this yourself (if you are technical/skilled enough) - Other interactions such as form submits, videos, clicks can be tracked without a developer in most cases. - "anonymous user ID" is a misunderstanding. GA already sets a cookie in visitor's browser with a randomly generated ID. That is used to recognize the user when he/she comes back. That's it. User ID can be implemented properly when the website has a login feature.
@baharnargileci2366
@baharnargileci2366 Жыл бұрын
Thanks :)
@Brian-gn2vk
@Brian-gn2vk 2 ай бұрын
Please make a video on how to push the data from a form to the data layer. The push part is missing from this tutorial.
@rudroroy1054
@rudroroy1054 Ай бұрын
I thought you don't need to push any GTM code into your website source code for it to track events?
@davidbrownless4278
@davidbrownless4278 2 жыл бұрын
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!
@AnalyticsMania
@AnalyticsMania 2 жыл бұрын
If a developer has pushed the email to the data layer, maybe you can ask him/her to push the same info on the subsequent pages. Another option would be to set the email in a cookie that expires in 30 minutes or so. It would be a good practice to have that email already hashed.
@AJA2k19
@AJA2k19 10 ай бұрын
But how do you see the information in GA4 reports from implementing this all in GTM?
@AnalyticsMania
@AnalyticsMania 10 ай бұрын
I explain all of that and much more in my GA4 course www.analyticsmania.com/courses/google-analytics-4-course/
@faizsheikh9442
@faizsheikh9442 11 ай бұрын
Great help, but do you also have a video explaining how the data layer code/script is added to the website by the developer, I dont have a developer I have to do it myself.
@AnalyticsMania
@AnalyticsMania 11 ай бұрын
You would nees to learn how to code first. And the code on different websites would be different
@Victor-cl6st
@Victor-cl6st 11 ай бұрын
Nice video, but I have a problem, Tag Assistant says that the event is being sent to GA4, however when I go to GA4 real-time, the event is not shown. I have tried adding a custom event to GA4, but nothing happens.
@AnalyticsMania
@AnalyticsMania 11 ай бұрын
www.analyticsmania.com/post/google-analytics-real-time-reports-not-working/
@TechDren
@TechDren 2 жыл бұрын
Did anyone find the link to config the GA4 config i can't seem to find it
@AnalyticsMania
@AnalyticsMania 2 жыл бұрын
What?
@kemvichet3185
@kemvichet3185 3 жыл бұрын
Can you create course about google tag manager and facebook conversion tracking?
@AnalyticsMania
@AnalyticsMania 3 жыл бұрын
Already have it analyticsmania.com/courses/google-tag-manager-course-for-beginners
@selenefroehlich9138
@selenefroehlich9138 Жыл бұрын
it's hard to understand, so much info at once, especially for beginngers to Tag Manager, I already installed everything, now I am learning the specs of it
@asjidnomi7826
@asjidnomi7826 3 жыл бұрын
Julius, I am afraid of, what will be left in your premium courses? Slowly and steadily the most valuable content is free on KZbin? May be i should change the decision of buying and wait here! LoL...
@AnalyticsMania
@AnalyticsMania 3 жыл бұрын
Don't worry. My paid courses have many more things that are not available on my blog or youtube. Even this video tutorial just scratches the surface of data layer. And there are many more things you should learn about it. those things are in the paid courses.
@asjidnomi7826
@asjidnomi7826 3 жыл бұрын
@@AnalyticsMania That's Great Julius. Thanks for the clarification.
@lokeshkumar-jj1dw
@lokeshkumar-jj1dw 2 жыл бұрын
Are we fully dependent on developers to create Data layer on custom website or data layer listeners can do that?
@miguelzicia7124
@miguelzicia7124 2 жыл бұрын
the course is spanish
@igniteacademic
@igniteacademic Жыл бұрын
Thanks!
@hectorcarmenates4145
@hectorcarmenates4145 2 жыл бұрын
Thanks!
5 JavaScript topics to learn for Google Tag Manager
14:54
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 15 М.
Send Customer Information To Facebook (w/Data Layer)
18:10
Vertex Marketing Agency
Рет қаралды 8 М.
어른의 힘으로만 할 수 있는 버블티 마시는법
00:15
진영민yeongmin
Рет қаралды 6 МЛН
How many pencils can hold me up?
00:40
A4
Рет қаралды 17 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 116 МЛН
Data Layer Explained With Practical Examples in Google Tag Manager
13:53
This Chrome Extension solves ALL your GA4 problems #gamechanger
8:28
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 34 М.
5 Advanced JavaScript Techniques for GTM
15:34
MeasureSchool
Рет қаралды 20 М.
Google Tag Manager Server-side tagging tutorial with Google Analytics 4
49:32
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 63 М.
Google Analytics 4 Form Tracking (Plus 4 Mistakes To Avoid)
18:33
Consent Mode v2: What you need to know and setup with Cookiebot
24:59
DOM element variable in Google Tag Manager
17:02
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 19 М.
How to Set Up GA4 E-commerce Tracking (Complete Guide)
12:28
MeasureSchool
Рет қаралды 108 М.
Missing GA4 Configuration Tag in GTM? It's CHANGED!?!
6:30
Loves Data
Рет қаралды 20 М.
A Comprehensive Guide to Using Zoyya Tools for Photo Editing
0:50
📱 SAMSUNG, ЧТО С ЛИЦОМ? 🤡
0:46
Яблочный Маньяк
Рет қаралды 1,7 МЛН
Эффект Карбонаро и бумажный телефон
1:01
История одного вокалиста
Рет қаралды 2,6 МЛН
МОЖНО ЛИ заряжать AirPods в чехле 🧐😱🧐 #airpods #applewatch #dyson
0:22
Apple_calls РЕПЛИКА №1 В РФ
Рет қаралды 18 М.
Apple iPhone 15 Pro Max With Smallrig Professional Photography kit #shorts
0:14