---
title: Sending a sample of events to Speed Insights
description: Learn how to send a sample of your data to Speed insights.
url: /kb/guide/sending-sample-to-speed-insights
canonical_url: "https://vercel.com/kb/guide/sending-sample-to-speed-insights"
published: 2025-11-04
last_updated: 2025-11-11
authors: DX Team
related:
  - /docs/speed-insights/package
  - /docs/speed-insights
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

By default, all events are sent to Speed Insights.

To send only a sample of your data, you can add the Speed Insights component with the [`sampleRate`](/docs/speed-insights/package#samplerate) prop to your app's root layout. The [`sampleRate`](/docs/speed-insights/package#samplerate) prop accepts a number between 0 and 1, where 0 is 0% and 1 is 100%:

```ts
import { SpeedInsights } from '@vercel/speed-insights/next';

export default function RootLayout({ children, }: {children: React.ReactNode;}) {
  return (
    <html lang="en">
      <head>
        <title>Next.js</title>
      </head>
      <body>
        {children}
        <SpeedInsights sampleRate={0.5} />
      </body>
    </html>
  );
}
```

## More resources

- [`@vercel/speed-insight`](/docs/speed-insights/package)[s reference](/docs/speed-insights/package)
  
- [Speed Insights](/docs/speed-insights)