/FAQ

What is a data layer?

How does the data layer work?

window.dataLayer = window.dataLayer || []; dataLayer.push({ event: 'add_to_cart', ecommerce: { currency: 'USD', value: 49.99, items: [{ item_id: 'SKU_123', item_name: 'T-shirt', price: 49.99, quantity: 1 }] } });
  1. 1.
  2. 2.
  3. 3.
  4. 4.

How does the data layer appear on your website?

How is the data layer used in server-side tracking with Stape?

  1. 1.
  2. 2.
  3. 3.
  4. 4.

How to check the data layer?

Browser Developer Console
GTM Preview Mode

Was this article helpful?

Comments

Can’t find what you are looking for?