3 Ways to Check Your Data Layer Is Working

3 Ways to Check Your Data Layer Is Working

Considering the importance of the data layer in collecting web analytics data, you’ll want to periodically check that your site’s data layer is working as expected. Here are three ways to check your data layer is working properly.

1) In the Dev Tools Console

Because the data layer is just another JavaScript object attached to the window object in your browser, you can simply type the name of your data layer into your console to check it. 

Here are the steps:

  1. Open dev tools in your browser.
  2. Go to the console.
  3. Type in the data layer name.
  4. Press enter.

This is a quick and easy way to look into what data is currently in your data layer; however, testing in this manner is manual and not ideal for repetitive testing.

3 Ways to Check Your Data Layer Is Working

2) Using a Chrome Extension

Many extensions exist as a “data layer checker,” but our personal favorite is our own TagDebugger (for obvious reasons). 

Here’s how to set up TagDebugger and check the data layer:

  1. Request access to the TagDebugger.
  2. Click “Add to Chrome.”
  3. Open the Chrome Developer tools.
  4. Click on the ObservePoint TagDebugger icon.
  5. Go to Options.
  6. Type in the data layer object name in the box.
  7. Reload the page to see it appear in the report.
  8. Click on the Data Layer to see variable details.

This option is almost as simple as just typing the data layer name into the console, but you have the added benefit of being able to debug your analytics and marketing vendors. However, it’s still not ideal for repeatable testing at scale. 

3) Automated Audits

The best option for testing at scale is by using an automated audit like our Technology Governance solution. An automated audit offers more comprehensive scanning capabilities and can be set up to audit your data layer on a pre-determined schedule.

Automated scans can:

  1. Scan thousands of pages
  2. Confirm the presence of the data layer
  3. Make sure that page loads and events are triggering the right tags
  4. Compare tag variables to the data layer values
  5. Allow you to check all third-party technologies and how they’re interacting with the data layer
  6. Send alerts if something isn’t functioning according to the rules you define

If you’d like to see a data layer Audit in action, fill out this quick form to request a demo.

Related Posts

Alerts & Rules

Interested in learning the differences between Alerts & Rules? Want to know the best tips and tricks on how to leverage these tools?
Read More

Takeaways from Adobe Summit & IAPP GPS 2023

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More

Lessons From Migrating to GA4

Have you encountered issues while migrating to GA4? Such as storage limits, extra costs, or GDPR concerns? Learn how some clients decode and understand their data to achieve strategic objectives.
Read More

Sharing is Caring

Learn how to share your condensed reports with others in your organization.
Read More

GPC Update to ObservePoint’s Full Suite of Privacy Features

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More

Cookie Cheat Sheet

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More

Alerts & Rules

Interested in learning the differences between Alerts & Rules? Want to know the best tips and tricks on how to leverage these tools?
Read More

Takeaways from Adobe Summit & IAPP GPS 2023

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More

Lessons From Migrating to GA4

Have you encountered issues while migrating to GA4? Such as storage limits, extra costs, or GDPR concerns? Learn how some clients decode and understand their data to achieve strategic objectives.
Read More

Sharing is Caring

Learn how to share your condensed reports with others in your organization.
Read More

GPC Update to ObservePoint’s Full Suite of Privacy Features

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More

Cookie Cheat Sheet

In our most recent DataChat Live, we covered ”Cookie Governance from A to Z” with ObservePoint CTO, Dave Smith. Below are the highlights from that discussion.
Read More