tpTrackingplan answers
A dataLayer checker answers two questions: what did the page push, and was it what the tags expected? The Chrome console answers the first for your own session, in the five steps below. Trackingplan's dataLayer checker answers both on real traffic: it lists every dataLayer push of every session next to the hits it produced, and you set rules so a push that does not meet them is flagged, release after release. It is part of Trackingplan for developers; the release note shows where it lives in the dashboard.
In Google Tag Manager, or any tag management system, the dataLayer is the bridge between your website and your analytics and advertising tags. Here is how to read it in Chrome:
- 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 .
- Navigate to the Console – Click the Console tab at the top of DevTools . This tab lets you run JavaScript commands.
- 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 .
- 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 .
- 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.