Blog How to Add Web Analytics to Any Website in Under 2 Minutes

How to Add Web Analytics to Any Website in Under 2 Minutes

Niamh Gallagher · Developer Experience Engineer, GhostlyX · 21 Mar 2026

Getting web analytics on your site should not require a developer, a plugin, or an afternoon of configuration. Here is how to add GhostlyX in under two minutes.

Step 1: Create your GhostlyX account

Sign up at https://ghostlyx.com. The 30-day free trial requires no credit card.

Step 2: Add your site

After signing in, click Add site and enter your domain name. GhostlyX will generate a unique tracking snippet for your site.

Step 3: Add the script to your site

Copy the tracking snippet and add it to the <head> section of every page you want to track. The script uses the defer attribute so it loads asynchronously and does not block your page from rendering.

Platform-specific instructions

  • WordPress:
    Paste the snippet into your theme's header using the Theme Editor, or use the Insert Headers and Footers plugin.

  • Webflow:
    Go to Project Settings ??? Custom Code, then paste the snippet in the Head Code section.

  • Squarespace:
    Go to Settings ??? Advanced ??? Code Injection, then paste the snippet in the Header section.

  • Static site:
    Add the snippet inside the <head> tag in your HTML template or layout file.

Step 4: Verify the installation

Return to your GhostlyX dashboard. Open your site in another browser tab and navigate around. Within a few seconds, GhostlyX will show a live visitor (you).

That is it

No configuration files. No cookie consent banner. No GDPR compliance checklist. GhostlyX is cookie-free by design, so you are compliant from the moment you add the script.