Add your ID with a meta tag

Put your Publisher ID in a <meta> tag, for static websites where you can't set response headers.

In short

  • Best for: static HTML websites that are already clean.
  • You do: add one tag to the <head> of every page, usually through a shared layout.
  • Done when: every page's source contains the tag.

The tag to add

This is an example Publisher ID. Replace it with your own before using it.

<meta name="Better-Web-Publisher" content="zapub_7Fq2xR9nKd3wV8mB4tL6yH1c">

Use a meta tag only if your website is already clean

The tag announces that you take part. It doesn't remove ads or unlock content.

To serve subscribers a different page, your server must read the Better-Web-Token request header. Static HTML and in-page JavaScript can't read it. So a website with ads, banners, trackers, popups or a paywall needs a server, edge worker or CMS plugin: follow Remove ads for subscribers.

Check whether your website is already clean →

1. Add the tag to every page

Put the tag inside <head>, on every page you want counted. Add it to a shared layout, so you don't edit each page by hand:

  • Static site generators such as Astro, Hugo, Eleventy, Jekyll or Next: add it to your base layout or <head> partial, then rebuild.
  • A CMS: add it to your theme's header, or use a plugin that adds <meta> tags site-wide.
  • Hand-written HTML: add it to each page's <head>, or to your shared include.

2. Check it's live

Open a page, and view its source. Search for Better-Web-Publisher.

Or, from a terminal, replace example.com with your website:

curl -s https://example.com/ | grep -i better-web-publisher

The extension reads the tag after the page loads.

3. Get your website listed

Your website appears in Websites & creators after a subscriber visits it and their activity is processed.

To see it sooner, add it yourself: open Add a website or creator page, enter your address, and select Verify & add. This uses the browser extension, but no paid membership.

Header or meta tag?

Both create a website integration, and both earn the same way.

Prefer the response header if your server, proxy or CDN can set it. It covers every page in one setting.

Next step

You're done if your website is already clean. See how you earn →