Skip to main content

GTM, the dataLayer and Your First Conversion · Part 2: GTM, the dataLayer and custom events

Chapter 2.2 · 11 of 25 · 3 min

What the dataLayer is, and why nothing works without it

The dataLayer is a JavaScript array, and it is the only way the site and GTM talk to each other.

Unlocks with the book

The dataLayer is a JavaScript array, and it is the only way the site and GTM talk to each other.

The site's job is to put information in the dataLayer. GTM's job is to pick it up from there. GTM cannot peek into your database on its own; it cannot know the order value or who is logged in. If it is not in the dataLayer, GTM does not have it.