Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
This commit is contained in:
parent
5494466475
commit
05df84f6b1
1 changed files with 3 additions and 2 deletions
|
@ -111,8 +111,9 @@ export default defineConfig({
|
||||||
|
|
||||||
#### `beforeSend`
|
#### `beforeSend`
|
||||||
|
|
||||||
To define the `beforeSend` function, you need to create a separate file inside your root called `vercel-web-analytics.ts`.
|
`beforeSend` is a function that can modify analytics event data before it's sent to Vercel.
|
||||||
If you're not using TypeScript, you can define the function inside `vercel-web-analytics.js`.
|
|
||||||
|
Define this function in a separate file at the root of your project called `vercel-web-analytics.ts` (or `vercel-web-analytics.js` if you're not using TypeScript).
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
// vercel-web-analytics.ts
|
// vercel-web-analytics.ts
|
||||||
|
|
Loading…
Reference in a new issue