OnePaywall Docs
Getting Started

Add Your First Domain

Register your site with OnePaywall and install the embed snippet to start gating content.

Step 1 — Register your domain

  1. Go to Dashboard → Domains
  2. Click Add domain
  3. Enter your site's base URL (e.g. https://yourblog.com)
  4. Click Save

OnePaywall generates a unique site key for each domain. You'll use this key in the embed snippet.

Step 2 — Install the embed snippet

Copy the snippet from Dashboard → Domains → [your domain] → Embed and paste it into the <head> of every page on your site.

<script
  src="https://cdn.onepaywall.com/embed.js"
  data-site-key="YOUR_SITE_KEY"
  defer
></script>

Replace YOUR_SITE_KEY with the key shown in your dashboard.

Domain settings showing the embed snippet with your site key

CMS-specific placement

CMSWhere to add the snippet
WordPressAppearance → Theme Editor → header.php, inside <head>
GhostSettings → Code injection → Site header
WebflowProject settings → Custom code → Head code
SquarespaceSettings → Advanced → Code injection → Header
Custom HTMLInside the <head> tag of your base template

Step 3 — Verify the installation

After adding the snippet, go back to Dashboard → Domains → [your domain] and click Verify. OnePaywall checks that the script is loading correctly on your site.

A green Verified badge means the embed is active. You're ready to create gates.

Next steps


→ Open Domains in Dashboard

On this page