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

Tip Jar: Using the ObservePoint API Part 2

Wish you could consolidate your ObservePoint findings into your company-wide BI tool? Well, you can! Learn how to use the ObservePoint API.
Read More

How Retailers Can Use ObservePoint for an Ultra Successful Q4

See how ObservePoint can help you make sure your websites are ready to track the increased ad spend and handle the uptick in traffic and conversions.
Read More

Website Cookies: Where They’re From and Where They’re Going

Did you know the average company has 17.75 cookies on their homepage and 45.5% of those are 3rd party? Learn more from our 2023 Web Governance Report.
Read More

How to Test Consent Preferences with ObservePoint

You can't set and forget a CMP. We'll tell you why and explain how we can help you test consent preferences easily.
Read More

How to Work on Privacy with Other Departments

A fun cheat sheet to get you on the path to collaboration on privacy compliance.
Read More

2023 Web Governance Report Highlights

Get a teaser of our 2023 Web Governance Report with this infographic. For more data goodness, follow the link to the full report at the end.
Read More

Tip Jar: Using the ObservePoint API Part 2

Wish you could consolidate your ObservePoint findings into your company-wide BI tool? Well, you can! Learn how to use the ObservePoint API.
Read More

How Retailers Can Use ObservePoint for an Ultra Successful Q4

See how ObservePoint can help you make sure your websites are ready to track the increased ad spend and handle the uptick in traffic and conversions.
Read More

Website Cookies: Where They’re From and Where They’re Going

Did you know the average company has 17.75 cookies on their homepage and 45.5% of those are 3rd party? Learn more from our 2023 Web Governance Report.
Read More

How to Test Consent Preferences with ObservePoint

You can't set and forget a CMP. We'll tell you why and explain how we can help you test consent preferences easily.
Read More

How to Work on Privacy with Other Departments

A fun cheat sheet to get you on the path to collaboration on privacy compliance.
Read More

2023 Web Governance Report Highlights

Get a teaser of our 2023 Web Governance Report with this infographic. For more data goodness, follow the link to the full report at the end.
Read More