/

/

Data Layer

Data Layer

Data Layer

A data layer is a JavaScript object on a web page, usually window.dataLayer, where the site pushes events and values for a tag manager to read. Google Tag Manager reads from it; Consent Mode updates, page context, and ecommerce events all arrive as pushes into the same array.

Updated

Category

Tracking

Also known as

dataLayer; GTM data layer

In practice

Treat the data layer as the contract between the site and every tag that depends on it. Write down which pushes exist, what keys they carry, and when they fire, and check that list before every tag change. The usual tracking gap is a push that stopped firing or a key that changed shape, not a broken tag.

Something out of date?