
Analytics Best Practices
- 49 installs
- 18 repo stars
- Updated June 8, 2026
- andrelandgraf/fullstackrecipes
analytics-best-practices is a skill that shows how to track custom events and conversions with Vercel Web Analytics using the track() call.
About
A skill that shows how to track custom events and conversions with Vercel Web Analytics using the track() call. It covers naming events consistently, firing them inside component event handlers, and testing them in development mode. A developer uses it when instrumenting user actions, conversions, or form submissions in a Vercel app.
- Instruments custom events with Vercel Web Analytics via the track() call
- Shows event naming around auth, feature usage, and conversions
- Explains dev-mode testing so events fire and log locally
Analytics Best Practices by the numbers
- 49 all-time installs (skills.sh)
- Ranked #1,092 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
- Data as of Jul 28, 2026 (Skillselion catalog sync)
analytics-best-practices capabilities & compatibility
- Capabilities
- analytics
- Works with
- vercel
- Use cases
- data analysis
What analytics-best-practices says it does
Track custom events and conversions with Vercel Web Analytics via the track() call. Use when instrumenting user actions, conversions, or form submissions.
Events only send in production by default. Enable locally on the `<Analytics />` component in `layout.tsx`.
npx skills add https://github.com/andrelandgraf/fullstackrecipes --skill analytics-best-practicesAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 49 |
|---|---|
| repo stars | ★ 18 |
| Last updated | June 8, 2026 |
| Repository | andrelandgraf/fullstackrecipes ↗ |
What it does
Instrument custom events and conversions in a Vercel app using the Vercel Web Analytics track() call.
Who is it for?
Instrumenting user actions, conversions, and form submissions with Vercel Web Analytics
Skip if: Analytics platforms other than Vercel Web Analytics
When should I use this skill?
You are adding custom event or conversion tracking in a Vercel-hosted app
By the numbers
- single track() API for all custom events
Files
Analytics Best Practices
Track custom events and conversions with Vercel Web Analytics.
Prerequisites
Complete these setup recipes first:
- Vercel Web Analytics
Tracking Events
Call track(name) or track(name, properties) from client code.
import { track } from "@vercel/analytics";
track("signup_clicked");
track("purchase_completed", { plan: "pro", price: 29, currency: "USD" });Name events consistently around auth, feature usage, and conversions.
track("signup_completed", { method: "email" });
track("chat_completed", { messageCount: 5 });
track("subscription_created", { plan: "pro" });
track("upgrade_completed", { from: "free", to: "pro" });In Components
Track inside event handlers.
import { track } from "@vercel/analytics";
function UpgradeButton() {
return (
<button
onClick={() => track("upgrade_button_clicked", { location: "header" })}
>
Upgrade
</button>
);
}function ContactForm() {
const handleSubmit = async (e: FormEvent) => {
e.preventDefault();
track("contact_form_submitted", { source: "footer" });
// submit...
};
return <form onSubmit={handleSubmit}>...</form>;
}Testing in Development
Events only send in production by default. Enable locally on the <Analytics /> component in layout.tsx.
<Analytics mode="development" /> // sends events
<Analytics debug /> // logs events to consoleView page views, visitors, and custom events under Analytics in the Vercel dashboard.
---
References
Related skills
FAQ
How do I track a custom event?
Call track(name) or track(name, properties) from client code, importing track from @vercel/analytics.
Why aren't my events showing in development?
Events only send in production by default; enable them locally with mode="development" on the Analytics component.