From thumbgate
Walks through gathering Plausible, PostHog, and GA4 analytics keys and setting them in local .env and Railway production variables.
How this skill is triggered — by the user, by Claude, or both
Slash command
/thumbgate:configure-analyticsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Repeatable skill for setting up Plausible, PostHog, and GA4 analytics keys
Repeatable skill for setting up Plausible, PostHog, and GA4 analytics keys
in both local .env and Railway production environment variables.
Plausible API key:
PostHog project API key:
phc_)GA4 Measurement ID:
Write/update repo/.env with:
PLAUSIBLE_API_KEY=<key>
PLAUSIBLE_SITE_ID=thumbgate-production.up.railway.app
POSTHOG_API_KEY=<phc_key>
THUMBGATE_GA_MEASUREMENT_ID=<G-ID or leave commented>
Option A — Railway CLI or GitHub deploy variables (preferred):
gh secret list --repo IgorGanapolsky/ThumbGate
gh variable list --repo IgorGanapolsky/ThumbGate
If Railway CLI auth works, set variables with railway variables set.
If Railway CLI reports invalid_grant, use the GitHub PR/deploy path and the
Railway dashboard in Chrome. Do not direct-push to main; use a focused branch,
PR, required checks, and branch-protected merge.
Option B — Chrome (if MCP not authenticated):
# Local: run Plausible poller
npm run social:poll:plausible
# Production: check instrumentation scripts and health
curl -fsS https://thumbgate.ai/health
curl -fsS https://thumbgate.ai/checkout/pro | grep -E 'plausible|posthog|G-[A-Z0-9]+'
thumbgate-production.up.railway.appTHUMBGATE_GA_MEASUREMENT_ID when present; do not assume the dashboard is export-ready without provider credentials.npx claudepluginhub igorganapolsky/thumbgateStep-by-step guide to connect Google Analytics 4 for fetching pageviews, sessions, events, and traffic sources. Activates when user mentions GA4 setup or connection.
Adds or repairs Google Analytics 4 on websites with privacy-compliant gtag/GTM setup, GA4 event taxonomy, and exact UI steps for tracking goals and AdSense revenue.
Guides GA4 property setup, event tracking (automatic, recommended, custom), custom dimensions, BigQuery integration, gtag.js/GTM implementation, reporting, and privacy compliance for web/app analytics.