Integrations Eleventy

Cookie-Free Analytics for Eleventy

Eleventy sites are static by nature, making a simple script tag integration ideal. GhostlyX loads asynchronously and does not affect Eleventy's excellent build performance.

Get started free Free plan available · Setup in 3 minutes

Installation guide

1

Add the script to your base layout

Open your base layout file (commonly _includes/layouts/base.njk or base.html) and add the GhostlyX script inside the <head> block.

Code
{# _includes/layouts/base.njk #}
<head>
    <meta charset="utf-8">
    <title>{{ title }}</title>
    <script defer src="https://cdn.ghostlyx.com/gx.js" data-site-id="YOUR_SITE_ID"><\/script>
</head>
2

Build and deploy

Run your Eleventy build command and deploy to your hosting provider. GhostlyX will track visits from the first deployment.

Why Eleventy users choose GhostlyX

Eleventy is a favourite among web performance advocates and developers who care about web standards. This community tends to be especially critical of surveillance-based analytics. GhostlyX is the natural choice: no third-party data sharing, minimal script size, and honest privacy-first design.

Cookie-free tracking

No consent banner required under GDPR or PECR

Under 1.5 kB script

Negligible impact on page speed and Core Web Vitals

Real-time dashboard

See visitors as they arrive, updated every few seconds

Free plan available

Start tracking without a credit card

Replacing Google Analytics on Eleventy?

See how GhostlyX compares feature by feature, including script size, GDPR compliance, and pricing.

GhostlyX vs Google Analytics

Ready to add GhostlyX to Eleventy?

Free plan available. Setup takes 3 minutes. No cookie consent banner required.

Get started free