From 05df84f6b1005f707b47d0f7b6bf3c1b74e963dc Mon Sep 17 00:00:00 2001 From: Chris <7249920+chriswdmr@users.noreply.github.com> Date: Mon, 4 Sep 2023 10:28:17 +0200 Subject: [PATCH] Update packages/integrations/vercel/README.md Co-authored-by: Sarah Rainsberger --- packages/integrations/vercel/README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/integrations/vercel/README.md b/packages/integrations/vercel/README.md index 5752aab02..f8bca1575 100644 --- a/packages/integrations/vercel/README.md +++ b/packages/integrations/vercel/README.md @@ -111,8 +111,9 @@ export default defineConfig({ #### `beforeSend` -To define the `beforeSend` function, you need to create a separate file inside your root called `vercel-web-analytics.ts`. -If you're not using TypeScript, you can define the function inside `vercel-web-analytics.js`. +`beforeSend` is a function that can modify analytics event data before it's sent to Vercel. + +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 // vercel-web-analytics.ts