Meritt Get started

All platforms

Affiliate program for a Ghost site

Ghost can serve your affiliate links from your own domain. One reverse-proxy rule, written once, and your links look like pages of your site — which is what no block list targets.

Mode A — on your own domain

The steps, in order

Where: the nginx block in front of Ghost, on acme.com

  1. Open the nginx configuration serving your Ghost site, in the server block for your domain. A Ghost-CLI install puts nginx in front of Ghost on its own.
  2. Paste the location block the app gives you: it relays your tracking prefix to us, strips the Cookie and Authorization headers, and turns on SNI, without which every link would return 502.
  3. Reload nginx: nginx -s reload.
  4. Click Check the installation, then open an affiliate link in another tab.

How long it takes

One block to add to the nginx config, then a server reload. The first test click shows up within seconds.

The tag, for payment links

If you take payment through Stripe Payment Links or a Buy Button, one <script> tag in the head of every page fills those links with the click, including the ones added after load. No code to write.

Where: In Ghost: Settings → Advanced → Code Injection, “Site header” field. What you paste there is output in the <head> of every page.

Questions about Ghost

I have no access to the nginx server in front of Ghost. What now?

Choose mode B in the app: a subdomain such as go.yoursite.com, one CNAME record at your DNS host, and we issue the certificate.

Why strip cookies from the request?

Your visitors carry your site's cookies, including Ghost member sessions. The rule strips them before relaying the request to us: they never leave your server.

Can paid Ghost members be attributed?

Meritt reads the sale in the system that takes the money. If your Ghost site takes payment through Stripe, connect your Stripe account under Payment system.

How do I check the rule answers?

The check button waits for a request to reach us through your domain. If nothing arrives, reload nginx and run the check again.

About Ghost, checked on October 19, 2026: ghost.org › code injection styles, docs.ghost.org › ubuntu

And then

Other platforms

On your own infrastructure: Web servers · CDN and edge · Frameworks · Hosting

Payment integrations

Free until your first commission. No card asked for.