One line of code. That's the whole install.
Paste it once, tap where ads go, and see every view and click.
- Paste one lineInto your site's <head>, once. Every page gets it, including pages you write later.
- Tap where ads goIn your AdSworn account, on one of your own articles: under the title, or after any paragraph. Every page follows; change one page on its own any time.
- Check your pagesOne click opens your busiest pages and shows where AdSworn is found. Fix one, press Check again.
- See every view and clickCounted by AdSworn, live in your account, for you and your sponsors.
<script src="https://adsworn.com/s/hatchwise.js" async></script>
Until a sponsor's post is approved, this spot shows a labelled sample that sells the page.
Where the ad goes
On each page you sell, AdSworn finds the article and puts the ad where you tapped. Nothing is added to pages you don't sell. A sponsored post takes your site's own fonts, so it reads like part of the article, and it's always labelled Sponsored.
Prefer to place it by hand? Put <div data-adsworn="featured"></div> (or banner) in your template. A spot you place yourself always wins.
What it does
- Loads asynchronously, so it never blocks your content. It adds one small stylesheet and nothing else.
- Counts the page load and which ads actually showed. That's how AdSworn confirms a sponsor's ad was really on the page, and checks your Google Analytics page views.
- Counts an ad view when at least half the ad has been on screen for one second.
- Links every click to
adsworn.com/c/…, which records it and sends the reader straight on. - Marks every link
rel="sponsored", as Google requires for paid links.
Styling
The ad's styles have zero specificity, so any CSS you write wins. The quickest way to match your site is to set these properties on the placeholder or any parent element:
[data-adsworn] {
--adsworn-bg: #ffffff;
--adsworn-fg: #1a1a1a;
--adsworn-muted: #6b6b6b;
--adsworn-accent: #0055ff; /* headline colour */
--adsworn-border: #e5e5e5;
--adsworn-radius: 12px;
--adsworn-font: 15px/1.45 Georgia, serif;
}Works on every stack
WordPress, Webflow, Shopify, Ghost, Squarespace, Wix, Framer and hand-built sites work as they are. On Next.js, TanStack Start, Remix, Nuxt, SvelteKit and Astro, the script waits until the page has loaded, so it never gets in your framework's way, and it follows client-side navigation by itself.
Readable by AI assistants
Assistants like ChatGPT and Claude read a page's HTML without running scripts. To put the sponsored post in the HTML too, your server can fetch /serve/<site>/html?u=<page>&k=featured and print it inside a data-adsworn spot. Your listings then show as AI-ready.