All features

Lightweight analytics script

Under 2 kB.
Zero performance cost.

The GhostlyX tracking script is under 2 kB gzipped. It loads asynchronously, executes in milliseconds, and has no measurable effect on your page load time, Time to Interactive, or Core Web Vitals scores.

Get started free

< 2 kB

Script size gzipped

Async

Non-blocking load

0 cookies

Nothing written to the browser

Tracking script size comparison

gzipped transfer size

Async load

The script uses defer so it never blocks the browser parser or delays rendering.

Zero Core Web Vitals impact

LCP, TBT, and CLS are unaffected. Lighthouse does not penalise deferred async scripts.

No dependencies

Self-contained plain JavaScript. No framework, no runtime loader, no third-party CDN calls.

Approximate transfer sizes. GhostlyX gzipped size measured from the production script.

Built to be invisible to your performance metrics

A lightweight analytics script is one that adds no measurable overhead to a page load. GhostlyX achieves this by loading with the defer attribute, which means it never blocks the browser's HTML parser or delays rendering. It begins executing only after the document has fully loaded.

A single HTTP request sends pageview data to GhostlyX servers. That request is fire-and-forget. No response processing is required on the client side, and it does not block any subsequent page activity.

The entire script is self-contained with no external dependencies, no framework requirements, and no runtime package loading. Under 2 kB gzipped. That is all it takes.

Deferred execution

The script tag uses defer so it never competes with critical rendering resources or delays Time to First Byte.

Single beacon request

One lightweight HTTP request per pageview. No polling, no WebSockets, no persistent connections.

No external dependencies

The script has zero dependencies and does not load anything from third-party CDNs at runtime.

Framework agnostic

Plain JavaScript. Works on any site regardless of whether you use React, Vue, plain HTML, or a CMS.

SPA support

Single-page applications are supported via a manual pageview API. Call it on each route change to track navigation without a full page reload.

Self-hostable

Serve the script from your own domain if you need to avoid third-party requests or satisfy strict CSP policies.

One snippet. That is all.

Paste the script tag into your HTML before the closing </body> tag and tracking starts immediately.

HTML

<script defer
        src="https://ghostlyx.com/js/script.min.js"
        data-site="YOUR-SITE-ID">
</script>

Full installation instructions are in the getting started guide.

Frequently asked questions

How big is the GhostlyX tracking script?

The GhostlyX tracking script is under 2 kB gzipped. It is self-contained with no external dependencies and loads asynchronously so it never blocks page rendering.

Will GhostlyX hurt my Lighthouse or Core Web Vitals score?

No. The script is deferred and under 2 kB, so it does not contribute to Largest Contentful Paint, Total Blocking Time, or any other Core Web Vitals metric. Lighthouse does not penalise deferred async scripts.

Does the GhostlyX script work on sites with a Content Security Policy?

Yes. You will need to add the GhostlyX domain to your CSP script-src and connect-src directives. The full CSP configuration is documented in the getting started guide.

Does GhostlyX support single-page applications?

Yes. The JavaScript API exposes a manual pageview method that you call on each route change. Integration examples are available for React, Vue, and Next.js in the documentation.

Can I self-host the GhostlyX tracking script?

Yes. The tracking script can be served from your own domain if you need to avoid third-party requests entirely. Instructions for self-hosting are in the documentation.

Does the GhostlyX script work on WordPress?

Yes. GhostlyX works on any platform that allows adding a script tag to your HTML. A WordPress plugin is available that handles installation without touching theme code.

Fast analytics for fast websites

Add GhostlyX to your site in minutes. Your Lighthouse score will not notice it is there.