Install guide · framework · ~3 min
npm i admaxxer, call in root.tsx.
React Router v7 (the Remix successor) renders a root <Scripts /> block in root.tsx. Add the Admaxxer init there so the pixel fires on the client after hydration.
Add admaxxer to your project.
npm i admaxxer
Add a client-only initializer. React Router v7 ships with full SSR; initAdmaxxer no-ops on the server.
app/root.tsx tsximport { useEffect } from 'react';
import { initAdmaxxer } from 'admaxxer';
export default function App() {
useEffect(() => {
initAdmaxxer({ websiteId: 'YOUR_WEBSITE_ID', domain: 'yourdomain.com' });
}, []);
return <Outlet />;
}
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).