Advanced privacy-first tracking SDK with fingerprinting and security detection
npm install @rabbitracker/sdkMakes a website visitor identifier from a browser fingerprint.
Unlike cookies and local storage, fingerprint stays the same in incognito/private mode and even when browser data is purged.
100% cookieless analytics tracking with GDPR/LGPD compliance and advanced bot detection.
Get a workspace token:
1. Register a new account at rabbitracker.com/signup
2. After registration go to the dashboard and create a new workspace
3. Go to the "API Keys" page, create and copy your workspace token
``bash`
npm i @rabbitracker/sdkor
yarn add @rabbitracker/sdk
`js
import RabbitTrackerSDK from "@rabbitracker/sdk";
// Initialize an agent at application startup.
const tracker = new RabbitTrackerSDK({
token: "your-workspace-token",
debug: true, // Enable for development
});
// Track page views (automatic)
// tracker.trackPageView() is called automatically
// Track conversions
tracker.trackPurchase({
value: 99.99,
currency: "USD",
productId: "product-123",
});
// Track custom events
tracker.trackCustomEvent("button_click", {
button_id: "signup",
page: "homepage",
});
// Get visitor data
console.log("Visitor ID:", tracker.getUserData().fingerprint);
`
##### Note: Installing via a script tag may interfere with SDK functionality for users with ad blockers enabled.
`html`
Note that you need to replace your-workspace-token` with a workspace token from the dashboard.