datascale

Check explainer

dataLayer

Without a dataLayer, tracking tools scrape values from the DOM, fragile and inconsistent.

  • to review
  • note
  • ok

What we check

Checks whether window.dataLayer is initialised and populated via push().

Why it matters

Without a dataLayer, tracking tools scrape values from the DOM, fragile and inconsistent.

Common causes

The most common triggers for this finding. Expand this section with real-world examples.

How to fix it

Initialise window.dataLayer before the GTM container and push() on every business event.

  • Q01
    What does a failing dataLayer finding mean?

    Without a dataLayer, tracking tools scrape values from the DOM, fragile and inconsistent. Initialise window.dataLayer before the GTM container and push() on every business event.

  • Q02
    How do you fix dataLayer?

    Initialise window.dataLayer before the GTM container and push() on every business event.