Back to FAQs
Data Basics

How to see datalayer in Chrome?

When working with Google Tag Manager or any tag management system, the data layer (often named dataLayer) acts as a bridge between your website and your analytics and advertising tags. Viewing this JavaScript array in Chrome helps you confirm that events and variables are firing correctly. Follow these steps to inspect it in Chrome:

  1. Open Chrome Developer Tools – On the page you want to inspect, right‑click and choose Inspect or press Ctrl + Shift + I (Windows/Linux) or Cmd + Option + I (macOS). This opens the DevTools panel .
  2. Navigate to the Console – Click the Console tab at the top of DevTools . This tab lets you run JavaScript commands.
  3. Enter the data layer object name – Type dataLayer (or your site’s custom data layer object, such as digitalData or utag_data) and press Enter . Chrome will output the current contents of the array; click the drop‑down arrows to expand each object and see variables like event names, product IDs and user types .
  4. Refresh after interactions – Each time you navigate or trigger an event (e.g., add a product to cart), re‑type dataLayer to see the updated pushes. For persistent monitoring, consider Chrome extensions like Data Layer Checker or Taglab’s Analytics Debugger, which display real‑time data without re‑typing commands .
  5. Interact and test – You can manipulate the data layer in the console to test tracking. For example, running dataLayer.push({'userType':'returningCustomer'}) adds a userType variable; then run dataLayer.userType to verify the value . This helps ensure your tags respond correctly before deploying changes.

By following these steps, marketers and developers can quickly debug Google Tag Manager implementations, confirm variables are populated and maintain clean, accurate analytics. If you see nothing when typing dataLayer, double‑check that your GTM container snippet is present and verify the object name used on your site.

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
By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.