enable-analytics
Enable Analytics
Vercel Web Analytics and Vercel Speed Insights ship installed and disabled: analytics.vercel.isEnabled and analytics.speedInsights.isEnabled in lib/config/index.ts are false, and components/analytics/index.tsx renders each provider only behind its flag. Enabling them is a config edit. Google Tag Manager needs a package, an environment variable, and one line in that component.
Before you start
Ask two questions, then wait for both answers.
1. Vercel Analytics and/or Speed Insights?
Both, analytics only, Speed Insights only, or neither — leave both flags false for neither.
2. Google Tag Manager?
If yes, ask for the container ID (GTM-XXXXXX), stored in NEXT_PUBLIC_GTM_ID.
Part A: Vercel Analytics and Speed Insights
Set the selected flags to true in lib/config/index.ts. Nothing else changes: both packages are dependencies, components/analytics/index.tsx gates each provider with &&, and app/layout.tsx already mounts <AnalyticsComponents />.