Install guide · framework · ~3 min
npm i admaxxer, call in gatsby-browser.js.
Gatsby exposes browser-only lifecycle hooks in gatsby-browser.js. The onClientEntry hook is the right place to initialize the pixel.
Add admaxxer to your project.
npm i admaxxer
Add (or create) gatsby-browser.js at the project root and export an onClientEntry hook.
gatsby-browser.js jsimport { initAdmaxxer } from 'admaxxer';
export const onClientEntry = () => {
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).