Integrations Django

Cookie-Free Analytics for Django

Django powers everything from small personal projects to large-scale platforms. GhostlyX integrates into any Django template in seconds with no additional packages required.

Get started free Free plan available · Setup in 3 minutes

Installation guide

1

Add the script to your base template

Open your base template (commonly templates/base.html) and add the GhostlyX script inside the <head> block.

Code
<!-- templates/base.html -->
<head>
    <meta charset="utf-8">
    <title>{% block title %}My Site{% endblock %}</title>
    <script defer src="https://cdn.ghostlyx.com/gx.js" data-site-id="YOUR_SITE_ID"><\/script>
    {% block head %}{% endblock %}
</head>
2

Verify tracking

Run your Django development server and visit any page. Open your GhostlyX dashboard and confirm the visit appears in real time.

Why Django users choose GhostlyX

Django is widely used across Europe, particularly in tech companies and universities that need robust compliance with GDPR. Adding GhostlyX means your analytics are compliant by default, with no consent management integration needed. You can also track custom events from Django views using the JavaScript API.

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 Django?

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

GhostlyX vs Google Analytics

Ready to add GhostlyX to Django?

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

Get started free