Install guides
Django
Add Actually Tracking to a Django site.
Add the script to your base template, before </head>:
<script defer src="https://actuallytracking.com/op1.js" data-client-id="YOUR_CLIENT_ID"></script>Replace YOUR_CLIENT_ID with your project's client ID from Settings → Clients / API keys. To keep the ID in settings instead, pass it to your templates with a context processor and write data-client-id="{{ ACTUALLY_TRACKING_CLIENT_ID }}".
Open your site in a new tab, then look at Realtime in Actually Tracking: your visit shows up within a few seconds. To track events from your server, use the Python SDK.