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

How to Interpret an Audit Report

In this episode, we go through an Audit report and show you what we look for on each page, where we see most customers have “ah ha!” moments, and answer any questions you might have along the way.
Read More

Getting to Know the ObservePoint Audit Report

Stuck on the Overview Page? Use this guide to help you dig into the rest of an Audit report!
Read More

ObservePoint + NP Digital: How Digital Marketers Should Prepare for 3rd-Party Cookie Deprecation

The deprecation of 3rd-party cookies on Chrome is a massive change for digital marketers. This session covers what marketers can expect and how to keep up with these big changes.
Read More

Does Your Site Work Without 3rd-Party Cookies?

Now that Google Chrome is phasing out 3rd-party cookies, digital marketers and website owners must be adequately prepared for a huge change to the way digital marketing works.
Read More

How to Use ObservePoint to Help You Navigate 3rd-Party Cookie Deprecation

As you’ve likely heard, major changes are coming to cookies in 2024! Google has started the deprecation of 3rd-party cookies, and ObservePoint can help you easily navigate this changing landscape.
Read More

Goodbye 3rd-Party Cookies Pt. 2: Advertiser Perspectives

Hear from our special guest Rob Myers, Sr. Product Manager at NextRoll, as he shares how he's preparing their consumer advertising platform to adjust to Chrome's Privacy Sandbox.
Read More

How to Interpret an Audit Report

In this episode, we go through an Audit report and show you what we look for on each page, where we see most customers have “ah ha!” moments, and answer any questions you might have along the way.
Read More

Getting to Know the ObservePoint Audit Report

Stuck on the Overview Page? Use this guide to help you dig into the rest of an Audit report!
Read More

ObservePoint + NP Digital: How Digital Marketers Should Prepare for 3rd-Party Cookie Deprecation

The deprecation of 3rd-party cookies on Chrome is a massive change for digital marketers. This session covers what marketers can expect and how to keep up with these big changes.
Read More

Does Your Site Work Without 3rd-Party Cookies?

Now that Google Chrome is phasing out 3rd-party cookies, digital marketers and website owners must be adequately prepared for a huge change to the way digital marketing works.
Read More

How to Use ObservePoint to Help You Navigate 3rd-Party Cookie Deprecation

As you’ve likely heard, major changes are coming to cookies in 2024! Google has started the deprecation of 3rd-party cookies, and ObservePoint can help you easily navigate this changing landscape.
Read More

Goodbye 3rd-Party Cookies Pt. 2: Advertiser Perspectives

Hear from our special guest Rob Myers, Sr. Product Manager at NextRoll, as he shares how he's preparing their consumer advertising platform to adjust to Chrome's Privacy Sandbox.
Read More