Install Piqo on Django
Add the snippet to your base template so every page inherits it.
- Open your base template — typically
templates/base.html. - Paste the snippet inside the
<head>(or yourextra_headblock). - Restart the server and reload the page.
{# templates/base.html #}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{% block title %}My site{% endblock %}</title>
<script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>
{% block extra_head %}{% endblock %}
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>