Data Layer Flashcards

1
Q

What is a Data Layer?

A

Think of it as a virtual layer between the website and the tag management solution.

It allows you to store, process and pass data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What do data layers enable you to do?

A

They allow you to store, process, and pass data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Technically a data layer is a JavaScript object. What does that mean?

A

JavaScript variables are container for data values and objects are variables too BUT objects can contain multiple values.

An object is a collection of properties and a property is an association between a name (or key) and a value.

The value can be a function as well - in this case, it’s known as a method.

Objects are comparable to objects in real life. In JavaScript, it’s a standalone entity with property and type. Properties define their characteristics.

While objects can be predefined in the browser, you can also create your own objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What’s an example of a JavaScript object?

A

Object: car. Cars have properties like weight and color as well as methods like start and stop.

Properties:

car.name = Fiat
car.model = 500
car.weight = 850kg
car.color = white

Methods:

car.start()
car.drive()
car.brake()
car.stop()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly