Install tracking, verify events, and start reading product behavior in minutes.
Get CORUVE running in your project in under 5 minutes.
Log in to your CORUVE dashboard and create a new project. You'll receive a unique Project API key.
Choose your install method. The CDN script is the fastest option for most projects.
<script
src="https://cdn.CORUVE-analytics.com/p.min.js"
data-project="proj_YOUR_KEY"
async
></script>Open your CORUVE dashboard. Within 30 seconds of page load, you should see incoming events.
Use the npm package for framework-native integration.
Install via npm, yarn, or pnpm:
npm install @coruve/tracker
# or
pnpm add @coruve/trackerInitialize the tracker once at your app's entry point:
import { CORUVE } from "@coruve/tracker";
CORUVE.init({
projectId: "proj_YOUR_KEY",
// Optional: override ingest endpoint for self-hosting
// endpoint: "https://ingest.yourapp.com",
});For Next.js App Router, call init in your root layout:
"use client";
import { useEffect } from "react";
import { CORUVE } from "@coruve/tracker";
export function CORUVEProvider() {
useEffect(() => {
CORUVE.init({ projectId: "proj_YOUR_KEY" });
}, []);
return null;
}Beyond automatic page views, track meaningful user actions.
Call CORUVE.track() with an event name and optional properties:
// Basic event
CORUVE.track("button_clicked");
// With properties
CORUVE.track("plan_upgraded", {
plan: "pro",
billing_cycle: "monthly",
source: "pricing_page",
});If you have logged-in users, you can associate events with a user ID:
CORUVE.identify("user_abc123", {
email: "user@example.com",
plan: "pro",
});Understanding how CORUVE handles user data securely.
CORUVE handles data with privacy as a first principle.
Best practices for keeping your project keys safe.
Your Project ID (proj_xxx) is a public write-only key intended for use in browser-side code. It cannot read data. Keep your secret API keys (used for the REST API) in server-side environment variables only.
# Safe to expose (write-only)
NEXT_PUBLIC_CORUVE_PROJECT_ID=proj_xxx
# Keep secret — server-side only
CORUVE_SECRET_KEY=sk_live_xxx