Get an Overview of the Measurement Bootcamp Program and it's difference
Know the difference between institute and the bootcamp. It's Action vs Activity​
Read why bootcamp is special and just not another regular digital marketing institute
Know the 5 areas of focus during the measurement bootcamp program
Marketing & Measurement Bootcamp
Our Core Program. Our Flagship Program. 36+ Modules, 5-6 hrs/day (Intermediate - Advanced Level)
Individual Program: Learn High-End Facebook Ads Marketing, Targeting & Tracking Skills
Individual Program: Learn Complex Google Tag Manager Strategies in Real-Time (Intermediate - Advanced Level)
Exclusive Program: Redefine Facebook Ads with FB Pixel Mastery Course
Individual Program: Learn High-End Google Analytics Measurement Skills (Intermediate - Advanced Level)
Individual Program: Learn High-End eCommerce Marketing Skills
Individual Program: Learn Advanced Google Ads Campaign Management Skills
Javascript For Marketing Course
Exclusive Program: Learn JavaScript to Improve Measurement and Data Collection Skills
Read the 15 reasons to join the measurement bootcamp
Check all the tools you would learn during the bootcamp
Take a look at our inspiring and state-of-the-art premise.
Know the different areas of our expertise in marketing
Want to reskill your employees existing marketing skills?
Hire the real talent and marketers that drives results
Want to work with us? Apply for internship opportunity
Want to grow and scale your startup. Check our Growth Lab
We provide solutions to marketing agencies for implementing measurement plans
Redefine the way marketing is done & measured.
Try our Amazing tools on dataLayer, Regex and JS objects
Download some high-value cheatsheets and PDF resources
Know about your exclusive events and seminar information
Cant afford the program fee? apply for our flagship program
Test your existing Google Ads knowledge with quiz
Test your existing Google Analytics knowledge with quiz
Understand and practice dataLayers and how they work with GTM
Know more about measure marketer and our mission
Know more about the certifications and recognitions
Ask more and assume less. Read the FAQ's for more information
dataLayers are the backbone for any customized implementations for tracking and measurement. All complex GTM implementations are done using dataLayers.
dataLayer is a JavaScript Array, which holds data in key-value pairs. The key is a variable name in String format, and values can be any allowed JavaScript type.
Values in the dataLayer are accessed using their index numbers since it is an Array. The values from the objects are accessed using the dot notation. If it's array of objects then both index position and the dot notation with the property name.
Below are examples of dataLayers with different data types:
This standard dataLayer push syntax pushes an object with 3 properties with key-value pairs of the type string. We put the string data type values within quotes.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
});
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
" "
:
" "
,
" "
:
" "
,
" "
:
" "
});
Lets see an example, if I push these 3 key value pairs:
We put the string data type values with quotes.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"firstName": "prashanth",
"lastName": "joel",
"company": "measure marketer"
});
Values in the array are accessed using their index numbers. Values in objects are accessed using the dot notation with the property name.
This standard dataLayer push syntax pushes an object with 3 properties with key-value pairs of the type Number. We put the number data type values without quotes.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
});
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
" "
:
,
" "
:
,
" "
:
});
Lets see an example, if I push these 3 key value pairs:
We put the number data type values without quotes.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"age": 31,
"year": 1989,
"weight": 69
});
If you need to access the value 31, then you need to create a dataLayer variable in GTM and access the value using the dot notation.
This standard dataLayer push syntax pushes an object with 3 properties with key-value pairs of the type Boolean. We put the boolean data type values without quotes.
window.dataLayer = window.dataLayer || [];
dataLayer.push({
});
window.dataLayer = window.dataLayer || [];
dataLayer.push({
" "
:
,
" "
:
,
" "
:
});
Lets see an example, if I push these 3 key value pairs:
We put the boolean data type values without quotes.
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"discount": false,
"certifications": true,
"placements": true
});
If you need to access the value 31, then you need to create a dataLayer variable in GTM and access the value using the dot notation.
This standard dataLayer push syntax pushes an object with 3 properties with key-value pairs of the type Object. We put the Object data type values in the {} (Object literal).
window.dataLayer = window.dataLayer || [];
dataLayer.push({
"Name" : "John",
"Age" : 30,
"Country" : "India",
"Brands" : {
},
"Cars" : {
},
"Gender" : "Male"
});
window.dataLayer = window.dataLayer || [];
dataLayer.push({
"Name" : "John",
"Age" : 30,
"Country" : "India",
"Brands" : {
" "
:
" "
,
" "
:
,
},
"Cars" : {
" "
:
" "
,
" "
:
,
" "
:
},
"Gender" : "Male"
});
Lets see an example, if I push these different objects into an object:
We put the Object data type values {}.
window.dataLayer = window.dataLayer || [];
dataLayer.push({
"name" : "John",
"cge" : 30,
"country" : "India",
"crands" : {
"car" : "honda city",
"owner" : true,
},
"cars" : {
"color" : "red ",
"price" : 500000,
"serviceFee" : 10000
},
"gender" : "Male"
});
NOTE: You can check the length of the dataLayer array using dataLayer.length. You can use this to find the index number.
If you need to access the value 500000, then you need to create a dataLayer variable in GTM and access the value using the cars.price notation.
This standard dataLayer push syntax pushes an object with 3 properties with key-value pairs of the type Array. We put the Array data type values in the [] (Array literal).
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event" : "trackEvent",
"pageType" : "Blog",
"userID" : 12345,
"pageCategories" : [{
"Marketing" : [
],
"Measurement" : [
],
"Implementation" : [
]
}],
"loginStatus" : "logged in"
});
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event" : "trackEvent",
"pageType" : "Blog",
"userID" : 12345,
"pageCategories" : [{
"Marketing" : [
" "
,
" "
,
" "
],
"Measurement" : [
,
],
"Implementation" : [
]
}],
"loginStatus" : "logged in"
});
Lets see an example, if I push different Arrays into an object:
We put the Array data type values [].
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event" : "trackEvent",
"pageType" : "Blog",
"userID" : 12345,
"pageCategories" : [{
"Marketing" : ["prashanth", "satish", "rajesh"],
"Measurement" : [30000, 2000],
"Implementation" : [true]
}],
"loginStatus" : "logged in"
});
NOTE: You can check the length of the dataLayer array using dataLayer.length. You can use this to find the index number.
If you need to access the values from pageCategories Object and Marketing Array, then you need to create a dataLayer variable in GTM and access the value "prashanth" then you use the pageCategories[0].Marketing[0] notation.
dataLayer is the most important part of the GTM. Without dataLayer GTM is ineffective.
Facebook Pixel is the most importnat part of Facebook Advertising.
Regular Epressions is important for people who are working on Google Analytics.
Ideas start differently and spread rapidly in the digital world. At Measure Marketer, we help bring them to life.
A Make Marketer Initiative
A high-end program for experienced digital marketers covering advanced measurement stuff.
WhatsApp us