A data layer is a data structure on your site or app that holds the information you want to process and sends it to other applications, like a tag management system.

The information you can pass through a data layer includes user actions on your site, app, or portal, such as page views, scrolls, or clicks, and additional details like product IDs and prices or cart value.

A tag manager can read data from your data layer and use it for tags, triggers, and variables, just like it would use data from the page’s source code. Your analytics data gets enriched with a record of all user behaviors, increasing opportunities for website or web-based application tracking.

With a data layer, you can:

  • Enhance your tracking capabilities.
  • Act on the data stored in a data layer to improve user experience.
  • Collect data in post-login areas.
  • Establish communication between the website or app with other tools like tag manager or analytics.
  • Benefit from a simpler debugging process.
  • Easily test changes or new features.
  • Simplify the execution of custom event tracking.
  • Facilitate personalization campaigns.

Learn more about data layers in analytics:


  • What is PII, non-PII, and personal data? [UPDATED]

    Personally identifiable information (PII) and personal data are two classifications of data that often confuse organizations that collect, store and analyze such data. Both terms cover common ground, classifying information that could reveal an individual’s identity directly or indirectly. PII is used in the US, but no specific legal document defines it. The legal system…

  • What is first-party data and how does it benefit your marketing strategy [Updated]

    First-party data is information a company collects directly from its customers through owned channels like websites, apps, transactions, and customer interactions. Unlike third-party data purchased from external sources, first-party data comes straight from your audience, making it more accurate, privacy-compliant, and valuable for personalized marketing. According to Acquia’s 2024 CX Trends Report, 93% of marketers…