GuidesWeb

Ghost analytics, cookieless and EU-hosted

Cookieless analytics for Ghost. Paste one snippet, own your data.

Privytics adds full product analytics to Ghost with one snippet and no coding. You paste it once into Ghost's Site Header box, swap in your client id, and page views start arriving. Ghost's own built-in stats are cookieless too, but they stop at simple counts. Privytics is cookieless and EU-hosted, and gives you funnels, retention and events you can own, with no consent banner for anonymous visitors.

Why Ghost teams use Privytics

No cookie banner to add

Privytics is cookieless. The snippet sets no cookies and sends no personal identifier, so for anonymous visitors there is nothing to consent to and no banner to bolt on.

Nothing is written to the device

Visitors are counted with an anonymous id that resets every day. Nothing is stored in the browser, so there is no tracking profile following anyone around.

Your data, hosted in the EU

Your event data is stored on servers in Germany and stays yours. No data is sold or shared, and you remain the data controller.

More than page counts

Ghost's built-in stats show simple totals. Privytics adds funnels, retention and events you can own, so you can see what readers actually do, not just how many arrived.

Set it up

About five minutes, on the free plan, without a credit card.

  1. Open Ghost's Code injection box

    In Ghost Admin, go to Settings, then under the Advanced group open the Code injection card. You will see two boxes: Site Header and Site Footer. You want Site Header. This works on every Ghost plan and every self-hosted install, so there is nothing to upgrade.

    Ghost Admin, Settings, Advanced, Code injection, Site Header
  2. Paste the snippet and Save

    Paste both tags below into the Site Header box. Replace YOUR_CLIENT_ID with the client id from your Privytics project, then click Save. Ghost may take a moment to update its cache, so give it a minute before you check.

    <script>
      window.op=window.op||function(){var n=[];return new Proxy(function(){arguments.length&&n.push([].slice.call(arguments))},{get:function(t,r){return"q"===r?n:function(){n.push([r].concat([].slice.call(arguments)))}} ,has:function(t,r){return"q"===r}}) }();
      window.op('init', {
        apiUrl: 'https://api.privytics.com',
        clientId: 'YOUR_CLIENT_ID',
        trackScreenViews: true,
        trackOutgoingLinks: true,
      });
    </script>
    <script src="https://privytics.com/op1.js" defer async></script>
  3. Check that page views arrive

    Open your site in a new tab and click around a few pages. Then open your Privytics dashboard and watch the Realtime view. Your visits appear within seconds. Page views track automatically, so once you see them this install is complete and you are done.

    Privytics dashboard, Realtime, watch the live visitor count

Questions

Do I need a paid Privytics plan?

No. The free plan covers 10,000 events a month with no card required, and it works on every Ghost tier and on self-hosted Ghost. Paid plans add session replay and 5-year event history, but page views work on the free plan.

Do I still need a cookie banner?

The snippet writes nothing to the device and sends no cookie, so for anonymous visitors there is nothing to consent to. You remain the data controller.

Where is my data stored?

On servers in EU data centres in Germany. It stays yours and is never sold. Data is kept for 12 months on the free plan and 5 years on paid.

Can I track custom events like button clicks?

Page views are tracked automatically once the snippet is live, and for most Ghost sites that is all you need. Ghost does not run custom tracking code added through its editor in a reliable way, so counting a specific click would mean a developer adding a small handler to your theme, where window.op is already available. Nothing extra is needed for page views.