enable-analytics
Installation
SKILL.md
Enable Analytics
The current storefront includes support for Vercel Web Analytics and Vercel Speed Insights, with each integration disabled by default in lib/config.ts. This skill enables or adds those integrations and can also add Google Tag Manager using the recommended integration.
Before you start
Ask the user two questions in order:
1. Do you need to add or change Vercel Analytics and/or Vercel Speed Insights?
- Enable both — page views, custom events, and Core Web Vitals
- Analytics only — page view and custom event tracking via
@vercel/analytics - Speed Insights only — Core Web Vitals monitoring via
@vercel/speed-insights - Neither — keep both integrations disabled
2. Do you want Google Tag Manager?
If yes, ask for the GTM container ID (e.g. GTM-XXXXXX). This will be stored in the NEXT_PUBLIC_GTM_ID environment variable.