ActionLab Analytics for Django
Add privacy-first, AI-powered analytics to your Django site in under 60 seconds. No cookies, no consent banners, no complex setup.
Installation Code
Django
{# templates/base.html #}
<head>
<script
src="https://cdn.actionlabanalytics.com/actionlab.js"
data-site="{{ ACTIONLAB_SITE_ID }}"
defer
></script>
</head>Step-by-Step Setup
- 1
Add the script to your base template (templates/base.html).
- 2
Pass ACTIONLAB_SITE_ID via Django settings and context processor.
- 3
Works with Django templates and HTMX.
- 4
No Django package needed.
Why Use ActionLab with Django
- Template variable configuration
- Works with Django templates and HTMX
- No pip package needed
- Compatible with Django 4+ and async views
Frequently Asked Questions
Does ActionLab work with HTMX?
Yes. ActionLab detects HTMX-driven navigation via the History API and tracks page transitions as pageviews automatically.