Documentation

Vercel Analytics

Last updated May 10, 2026

Vercel Analytics loads through @c15t/scripts using a declarative queue bootstrap (vaq + va) and script attributes for DSN/endpoint options.

Integrate with c15t

How c15t loads it

  • Category: measurement (Analytics)
  • Loads when: measurement consent is granted
  • On revocation: unloaded - c15t removes the script from the DOM and clears access to runtime globals until consent is granted again.

Load the debug bundle or a custom endpoint when needed:

Tracking events in your app

c15t initializes a bootstrap phase first (vaq plus a local window.va stub), then loads the remote Vercel Analytics script after measurement consent is granted. Calls are safe once the bootstrap stub exists (they are queued/ignored in vaq), but they execute only after consent is granted and the real window.va is injected and flushes the queue.

Guard event calls by checking consent state. From React:

From plain JavaScript:

Types

VercelAnalyticsOptions

Loading…

Script

Loading…