Install guide · framework · ~2 min
Call initPixel() in main.tsx.
For a client-side React app, call initPixel once at the entry point — typically src/main.tsx for Vite or src/index.tsx for CRA.
Add @admaxxer/pixel to your project.
npm install @admaxxer/pixel
Import and call initPixel before rendering your root component.
src/main.tsx tsximport React from 'react';
import ReactDOM from 'react-dom/client';
import { initPixel } from '@admaxxer/pixel';
import App from './App';
initPixel({ websiteId: 'YOUR_WEBSITE_ID' });
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).