← back to Interiordesignershowroom
public/js/ga.js
11 lines
// GA4 bootstrap for interiordesignershowroom.com (property G-DH9G5HL7YJ). Self-hosted
// (not inline) so the public storefront's strict `script-src 'self'` CSP admits it
// WITHOUT re-opening 'unsafe-inline' — the C11 hardening stays intact. The gtag.js
// LIBRARY still loads from https://www.googletagmanager.com (that origin is in
// script-src for exactly this reason); this file only defines dataLayer + config so
// the measurement queue drains once the async library arrives.
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-DH9G5HL7YJ');