
How it works
A small script in your Ghost site header checks whether the logged-in member has active access. If not, a paywall overlay appears over the locked content below the embed point. The overlay disappears automatically as soon as the member logs in with an account that PayGlue has already granted access to after a completed purchase.
What you need
Before using the Paywall, the following must be in place:- Ghost is connected in PayGlue (Admin API key added)
- A payment provider is connected
- At least one product and one mapping are configured in PayGlue
- The PayGlue header script is installed in your Ghost site header
Who the Paywall lets through
A visitor passes when their Ghost member record is any of the following:
All three pass, so moving a post from Ghost’s own visibility settings onto a PayGlue Paywall keeps your existing subscribers. There is nothing to prepare.
Setup
1
Install the header script in Ghost
In your PayGlue dashboard, go to Installation > Header script and copy the header script.
Open Ghost Admin and go to Settings > Code Injection > Site Header. Paste the script and click Save.
The script only needs to be installed once. It runs on every page of your Ghost site automatically.


2
Create a Paywall config
In your PayGlue dashboard, go to Installation > Paywall and click New paywall.Fill in the overlay fields:
Setting the button link — two options:Link a product (recommended) — select a product from your connected provider catalog. The checkout URL fills in automatically.Custom URL — paste any URL manually. Use this for providers that don’t yet support the product picker, for PWYW links, or for Ghost portal links.The live preview on the right updates as you type so you can see exactly how the overlay will look before saving.Click Save. The embed snippet appears below the form.

3
Embed in your Ghost post
Open the Ghost post or page where you want to protect content.Add an HTML card at the exact point where the paywall should begin. Paste the embed snippet from Step 2 into the card.Everything above the HTML card is visible to all visitors. Everything below is hidden behind the paywall overlay.
4
Test the paywall
Open the post in a private or incognito window. The paywall overlay should appear over the content below the embed.Log in with a Ghost member account that has active PayGlue access. The overlay should disappear and the full content should be visible.