dataLayer
What is a dataLayer?
A dataLayer is a JavaScript object (technically an array named window.dataLayer) that a website uses to expose structured data to tracking tools. The website “pushes” events to the dataLayer—for example, a purchase with an order number, order value, currency, and a list of products. The idea is to separate the website itself from the tracking setup: The site delivers data to one place, and tags read it from there.
How Google Tag Manager Uses the dataLayer
Google Tag Manager listens to the dataLayer: Triggers respond to events, and variables read the values, which are then sent on to GA4, Meta, and other platforms. For online stores, the dataLayer is the standard behind GA4’s e-commerce events such as view_item, add_to_cart, and purchase.
dataLayer in Shoporama
Shoporama’s built-in tracking automatically pushes e-commerce events to the dataLayer on all relevant pages: product views, category and search results, add-to-cart, checkout steps, and purchases. This requires no changes to the theme, and you don’t need to set up a Tag Manager container yourself.
If you’re building your own theme or want to expand your tracking, you can read more in the developer guide “Implement Tracking in Your Theme.”
We know online marketing in Shoporama
We've been working with online marketing ourselves for decades. As the only shop system in the country, we have spoken multiple times at conferences such as Marketingcamp, SEOday, Shopcamp, Digital Marketing, E-commerce Manager, Ecommerce Day, Web Analytics Wednesday and many more.