Skip to content

    Data layer

    Reading time: 2 min.Editorially reviewed on:

    Definition

    A data layer passes structured website events and values to the designated measurement tools.

    In web tracking, a data layer is a structured transfer layer between the website and measurement logic. It provides events and variables, such as purchase completion and order value. In Google's tag platform, corresponding information is processed via the JavaScript object dataLayer.

    Simply explained

    The website writes ordered notes, and the measurement tool reads from them which process has just taken place.

    Why it matters in practice

    A defined transfer reduces dependence on random texts or positions in the visible website.

    Example from business

    Possible example: After a successful order, the website passes event name, order ID, and value to the Tag Manager.

    Limits and pitfalls

    • Incorrect names or sequences lead to missing data. Personal data should not be included without verification; a data layer is not an access control.

    Origin & history

    The concept separates business events of the website from individual tracking tags; Google uses a specific technical implementation for this.

    Use in mid-sized companies

    • A company defines events and fields in the measurement concept and tests purchases for completeness and duplicate reports.

    Frequently asked questions

    Is the data layer a database?

    No. In the described web tracking context, it is a transfer structure, not a permanent central data store.

    Sources

    Editorially reviewed on:

    On this page

    Next step

    Put knowledge into practice