Install on Django
Measure visits to your Django website using the script from your Jelto product.
Before you start
Register the published hostname in Jelto and copy the complete script from Settings → Installation. You need permission to edit and publish the site. If your platform restricts custom scripts, confirm that your plan provides this feature.
Add the script
- Open your shared base template, commonly
templates/base.html. Put the copied tag before</head>in that base. Ensure each relevant page extends the base template. - Preserve the copied
data-product,data-endpointandsrcvalues. - Deploy the changed templates through your usual Django release process.
The tag has this structure; uppercase values below must be replaced with the values from your own dashboard:
<script defer
data-product="YOUR_PRODUCT_ID"
data-endpoint="YOUR_INGEST_ENDPOINT"
src="YOUR_SCRIPT_URL"></script>
Verify
Open the published homepage in a normal browser, navigate to another page, then use Jelto's Check traffic for the actual hostname. Follow Verify website tracking. For a site with client navigation, check a route change and the Back button as well as a full reload.
Common problems
Pages using a different base need the same installation. The browser script does not belong in Python request handlers.
If traffic is still missing, check collection troubleshooting. For optional route, exclusion and download settings, use Script configuration.
Platform reference: Official Django documentation.