← Support·Data Basics

Data BasicsQuestion 09 of 29

How do I see the data layer in the console?

tpTrackingplan answers

The data layer is a JavaScript array (often called dataLayer) that holds information your website passes to analytics and advertising tools . Viewing it through the browser’s built‑in developer tools lets you verify that events and variables are being pushed correctly. Here’s how to inspect the data layer in Chrome, Firefox or Edge:

  1. Open your browser’s developer tools – Right‑click anywhere on your webpage and select “Inspect” (or press Ctrl+Shift+I on Windows/Linux, Cmd+Option+I on macOS) to open DevTools .
  2. Switch to the Console tab – At the top of DevTools, click the Console tab to open the JavaScript console .
  3. Type the data layer object name – Enter dataLayer (or the custom object name used on your site, such as digitalData or utag_data) and press Enter . The console displays the current state of the data layer array; you can click the small arrows to expand each object and see the values of variables like event names, product IDs or transaction totals .
  4. Interact with the data layer (optional) – If you need to test pushing custom variables, you can do so in the console. For instance, dataLayer.push({'userType':'returningCustomer'}) adds a userType variable, and typing dataLayer.userType will show its value . This is useful for verifying that your marketing tags and triggers respond to the data correctly.

Tips for smoother debugging:

Following these steps ensures you can easily inspect your data layer, confirm that events fire correctly and troubleshoot issues before deploying tags to production.

More in Data Basics

Category page →
  1. ?Getting started with Adobe Analytics: What do I need?
  2. ?SGTM meaning: server-side Google Tag Manager, explained
  3. ?What is Cookieless Tracking?
  4. ?What is a tag?
  5. ?What are webpage tags?
  6. ?What is website tagging?
  7. ?What is a tag management system?
  8. ?What is a datalayer?
  9. ?dataLayer checker: in Chrome and across real traffic
  10. ?What Is First Party Data and How Can It Grow Your Business
  11. ?How can I create a customer data tracking plan?
  12. ?What is event tracking in digital marketing?
  13. ?What is marketing observability?
  14. ?What are the risks associated with compromised Data Integrity?
  15. ?How can organizations ensure Data Integrity?
  16. ?What is the role of Data Governance in an organization?
  17. ?What are the key components of a robust Data Governance strategy?
  18. ?Why is Data Accuracy crucial for organizations?
  19. ?How can organizations maintain Data Accuracy?
  20. ?What defines data reliability and why it is key for decision-making?
  21. ?How can organizations ensure Data Reliability in their datasets?
  22. ?What role does Data Lineage play in regulatory compliance?
  23. ?What is the purpose of a Data Dictionary in managing organizational data?
  24. ?What are the key components typically included in a comprehensive Data Dictionary?
  25. ?Why is Data Literacy crucial in today's data-driven business environment?
  26. ?How can organizations promote and enhance Data Literacy among their workforce?
  27. ?What is the purpose of Data Cataloging in a data management strategy?
  28. ?How does Data Cataloging benefit data-driven organizations?

Support

Do you have any questions?

Your questions are important to us. If there's anything on your mind that hasn't been addressed, reach out to us.

Let's talk →

Trackingplan

See everything. Miss nothing.

Your implementations audited around the clock with real-time, real-user data. Real-time alerts about errors or changes in your data, campaigns, pixels, privacy and consent. Let AI flag issues before they cost you.