Statement
In development mode (import.meta.env.DEV), analytics scripts shall not be injected into the page and trackEvent calls shall log to console.debug instead of dispatching to the dataLayer, preventing dev activity from polluting production analytics.
Rationale
Dev-mode isolation prevents false analytics data. Console logging aids debugging event wiring. Delivered by WP-C11 (D-C7-06).
Topics
Owner: analytics-privacy
Applies To
- Analytics & Consent DOC-00044