Skip to main content

Admiral developer docs

Admiral runs on your site as a tag. These pages cover the three APIs you build against it.

page.js
// Listen for an Admiral event.
window.admiral("after", "measure.detected", function (state) {
if (state.adblocking) {
document.body.classList.add("adblock-enabled");
}
});

// Open an Admiral view.
window.admiral("show", "transact.subscribe");

Browse by API

Start here