Install guide · framework · ~2 min
npm i admaxxer, call in main.tsx.
For a client-side React app, call initAdmaxxer once at the entry point — typically src/main.tsx for Vite or src/index.tsx for CRA.
Add admaxxer to your project.
npm i admaxxer
Import and call initAdmaxxer before rendering your root component.
src/main.tsx tsximport React from 'react';
import ReactDOM from 'react-dom/client';
import { initAdmaxxer } from 'admaxxer';
import App from './App';
initAdmaxxer({ websiteId: 'YOUR_WEBSITE_ID', domain: 'yourdomain.com' });
ReactDOM.createRoot(document.getElementById('root')!).render(<App />);
Load any public page on your site in a fresh browser tab. Within a few seconds, the Admaxxer dashboard realtime view should show the event. If nothing lands after 2 minutes, re-check the snippet is actually in the rendered HTML <head> (View Source, not just DevTools).