Platform Primitives
The Shopify mechanics the work rests on — the Section Rendering API, metafields, cart permalinks and the rest.
dataLayer
The `dataLayer` is a global array that page code pushes events and context into and a tag manager reads from. It's a convention rather than a browser API, defined by Google Tag Manager, and it exists so that page code and marketing tags can be deployed and changed independently of one another.
7 builds
localStorage
`localStorage` is a browser key and value store scoped to one origin, holding strings with no expiry until something clears them. It is never sent to the server, so nothing in it can change a rendered page or a cart by itself. Themes use it for state that should survive navigation but doesn't belong on the order record.
1 builds