Quickstart

Send your first event in under a minute.

1. Create a project

Open the Vanta dashboard and create a new project. Give it a name and pick a platform.

2. Get your API key

After creating the project, generate an API key. Copy the secret immediately, it won't be shown again.

3. Install the SDK

bash: npm install @vanta-dev/node
npm install @vanta-dev/node

4. Send your first event

typescript: import { Vanta } from '@vanta-dev/node'
import { Vanta } from '@vanta-dev/node'

const vanta = new Vanta({
  apiKey: process.env.VANTA_API_KEY
})

await vanta.track({
  event: 'purchase',
  data: {
    product: 'Premium',
    price: 19.99
  }
})

5. See it in the dashboard

Open the Vanta dashboard, go to your project, and click Events. Your event will appear.

The SDK automatically captures device, browser, and location context for every event. You don't need to add that manually.