01 The broken state
Dermacare Direct ran a multi-store headless Magento 2 storefront built as a single-page application, spanning four domains: two production sites and two staging sites. Data from each domain had to reach its own GA4 property, the SPA had no dataLayer in place, and existing tags needed migrating from the legacy standard Magento 2 GTM account to a new headless container.
