Skip to main content

HTML Meta Tag Integration

TL;DR: Example of an HTML <meta> tag:

<meta name="X-Better-Web-Welcome" content="AZqxhITVcO6haboXD24Bzg^1^1" />

The HTML <meta> tag method has limited use and is intended only for sites that:

  • Do not display ads
  • Do not track users with non-functional third-party trackers
  • Have no cookie consent or marketing dialogs

If your site meets these criteria, you can simply inject your server's Welcome Header token into each page. CMS platforms usually allow easy modification or addition of meta tags.

With each visitor who is an active subscriber and has installed the Zero Ad Network browser extension, you’ll earn rewards for serving clean content.

When to Use This Approach

Use the HTML meta tag method if:

  • Your site has a small number of static HTML pages
  • You use a static site generator that can easily rebuild pages
  • You cannot or do not want to edit your proxy server configuration

When Not to Use This Approach

If your site is served via an HTTP proxy server (NGINX, Apache, Caddy, etc.) and you can edit its configuration easily, the Proxy Server Approach is recommended instead. Benefits include:

  • No need to edit multiple HTML files
  • No reliance on a static site generator to rebuild pages
  • Automatic injection of the HTTP Response Header for all content

Example Integration

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- Welcome Header token -->
<meta name="X-Better-Web-Welcome" content="AZqxhITVcO6haboXD24Bzg^1^1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Minimal HTML5</title>
</head>
<body>
<h1>Hello, World!</h1>
</body>
</html>

How It Works

  • The browser extension checks each opened page for the HTTP Response Header or HTML meta tag.
  • If the HTML meta tag is present, the extension starts tracking:
    • Time spent by users on your site
    • Number of views per page
  • The extension sends this telemetry to our platform daily.
  • At the end of each month, we aggregate user activity and distribute rewards proportionally based on time spent on your site compared to other visited sites.