Data layer
A data layer is the JavaScript object through which a site hands information to a tag manager. Details such as the product added to the basket, order value or form type are written there, and tags read them. It keeps measurement independent of page design: while the data layer stays the same, measurement holds.
- Area
- Data and CRO
- In Turkish
- Veri katmanı
- Read more · Guide
- GA4 setup checklist: from property to DebugView tests
Why it matters
If tags read data from the page design, a design change quietly breaks measurement. The data layer removes that dependency. The developer and the marketing team must agree in advance which value is written under which name. Otherwise the same information is written under different names and reports do not match.
Example
Say a shop decides that on order completion the data layer will carry the order number, the product list and the order total. Even if the page design is renewed, these three values are written under the same names, so GA4 and the ad tags keep measuring the sale correctly. The design changes, measurement does not break.
Related terms
- Bounce rateBounce rate in GA4 is the percentage of sessions that were not engaged.
- Consent modeConsent mode is the mechanism that passes a visitor’s cookie choice to Google’s tags.
- GA4GA4 is the current version of Google Analytics, measuring website and app traffic in one property.
- Google Tag ManagerGoogle Tag Manager is Google’s free tool for adding and managing analytics and advertising tags from one panel without touching the site’s code each time.
- Key eventA key event is a GA4 event marked as valuable to the business, such as a purchase, a form submission or a click on a phone number.
- A/B testAn A/B test shows two versions of a page or element in the same period, assigns visitors to them at random and measures which performs better.
The definitions are general information. If you think one is incomplete or wrong, write to us and we will reply within one working day. Get in touch
From our journal
From what we have written on Data and CRO; they show how the term turns up in the work.
- How to build GA4 audiences and use them in Google AdsFrom conditions to sequences, from membership duration to predictive audiences: the steps for building a GA4 audience and what must be on for it to reach Google Ads.
- How to improve on-site search in an online shopFrom measuring search in GA4 and reading the terms that return nothing, to synonym and typo rules, the results page and the “no results” page, in order.
- How to write a GA4 measurement plan: events and key eventsStart from business questions, choose GA4 events, write down naming rules and limits, mark the key events, and put it all in a one-page table.
- What is server-side tagging, and who needs it?How a server container differs from tags in the browser, what it does and does not solve, who should bother, and the steps of a first setup.