Components

AnalyticsWrapper

marketing

Standardized analytics provider wrapper that automatically configures GTM and PostHog from environment variables. Handles GDPR consent, Google Consent Mode, and page view tracking with privacy-first defaults.

@launch/marketing-ui

Live Preview

PREVIEW

Live preview not available for this component.

Usage Guidance

✓ When to Use

Required wrapper for root layout of every marketing site that needs analytics tracking. Automatically initializes GTM and/or PostHog based on environment variables. Works seamlessly with CookieConsent component for GDPR compliance.

✗ When NOT to Use

Not needed for sites without analytics, internal tools that don't track users, or apps using custom analytics implementations outside of Launch77's standard setup.

Props

childrenclassNamestyleonClickonChange

Tags

analytics
provider
gtm
posthog
tracking
gdpr
consent
infrastructure
required
marketing