Use this skill whenever the user installs, configures, or debugs Google Analytics 4, or mentions gtag.js, GTM, conversion tracking, e-commerce events, or a cookie/consent banner tied to analytics. Covers installation, event tracking, user properties, e-commerce, Consent Mode v2 for EU/UK visitors, SPA pageview tracking, and BigQuery export. Skip for other analytics products (Plausible, Mixpanel, PostHog, Segment), Universal Analytics (sunset 2024), or server-side-only tracking.
$npx -y skills add ziniman/ai-instruct --skill google-analytics-4Installs into the current project.
Run `npx skills use "https://github.com/ziniman/ai-instruct" --skill "ziniman/ai-instruct/google-analytics-4"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/ziniman/ai-instruct" that are relevant to the current task. Run `npx skills add "https://github.com/ziniman/ai-instruct"` and select the relevant skills, then follow their instructions.