Install guide · framework · ~3 min
Install via npm for bundled frameworks.
Use the npm package when you want type safety and a single source of truth for your website ID. The package is SSR-safe: initAdmaxxer() no-ops on the server, so you can call it at module top-level without guards.
Add admaxxer to your dependencies.
npm i admaxxer
Import and call initAdmaxxer once at app boot. It is safe to call at module top-level — the function detects SSR and no-ops server-side.
import { initAdmaxxer } from 'admaxxer';
initAdmaxxer({
websiteId: 'YOUR_WEBSITE_ID',
domain: 'yourdomain.com',
});
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).