Ghost Integration

Cookie Banner for Ghost

Ghost is the publishing platform of choice for serious content creators. If you're monetizing with memberships, using analytics, or running ads, you need cookie consent for EU readers. TinyConsent integrates cleanly with Ghost through code injection — no theme modifications required.

60s
Setup time
<5KB
Script size
GDPR
Compliant

Get Your Ghost Code

No signup required to get started

Live Banner Preview

This is how the cookie banner will appear on your Ghost site.

My Ghost Site uses cookies to enhance your experience and analyze traffic. By clicking "Accept", you consent to our use of cookies.

Ghost Integration Code

Add this to: Settings → Code injection

<!-- Ghost Admin: Settings → Code injection → Site Header -->

<!-- TinyConsent Cookie Banner -->
<script src="https://scripts.tinyconsent.com/api/scripts/YOUR_SCRIPT_ID" async></script>

<!--
  This works on:
  - Ghost(Pro) hosted sites
  - Self-hosted Ghost installations
  - All Ghost themes
-->

Replace YOUR_SCRIPT_ID with your actual script ID from TinyConsent.

Why Ghost Sites Need a Cookie Banner

Ghost publications typically use: email subscriptions (which set cookies), analytics like Plausible or Google Analytics, embedded content from YouTube/Twitter, and member tracking. EU readers need to consent to these.

What TinyConsent Handles for Ghost

  • Automatic blocking of tracking scripts until consent
  • Technical consent collection with region detection
  • Google Consent Mode v2 integration
  • Consent storage and audit logging
  • Customizable design to match your site

How to Add a Cookie Banner to Ghost

1

Generate your script

Create your cookie banner at tinyconsent.com.

2

Access Ghost Admin

Log into your Ghost admin panel (yoursite.com/ghost).

3

Navigate to Code Injection

Go to Settings → Code injection.

4

Add to Site Header

Paste the TinyConsent script in the "Site Header" field.

5

Save settings

Click Save to apply the changes.

6

Clear cache and test

If using caching, clear it and test the banner on your site.

Ghost Tips

  • Works with Ghost(Pro) and self-hosted installations
  • Compatible with all Ghost themes
  • Handles member cookies and subscription tracking
  • Lightweight — won't slow down your publication

Why TinyConsent for Ghost

60-Second Setup

No npm packages, no build configuration. Just one script tag and you're compliant.

Lightweight

Under 5KB initial load. Zero impact on your Ghost bundle size.

Technical Infrastructure

Script blocking, consent logging, and region detection. Technical foundation for consent workflows.

Developer-Friendly

JavaScript API for checking consent status. Perfect for conditional script loading.

Frequently Asked Questions

Does Ghost need cookie consent?

If you have EU readers and use analytics, memberships, or any third-party integrations, yes. Ghost sets cookies for members and sessions.

Does this work with Ghost memberships?

Yes. TinyConsent can be configured to allow necessary member session cookies while requiring consent for analytics and marketing.

Will it work with my Ghost theme?

Yes. TinyConsent works with all Ghost themes including Casper, custom themes, and premium themes from the marketplace.

I use Ghost(Pro). Can I add custom code?

Yes. Ghost(Pro) includes code injection in all plans. Add TinyConsent through Settings → Code injection.

Does it handle embedded content?

TinyConsent can block embedded YouTube, Twitter, and other third-party content until consent is given.

What about caching and CDN?

TinyConsent loads from our CDN, so it works alongside Ghost's caching and any CDN you use.

Cookie Banners for Other Platforms

Ready to Add a Cookie Banner to Ghost?

Get compliant in 60 seconds. No signup required to try.