# Django (https://talivia.com/docs/installation-guides/django)



Install Talivia in the base template inherited by your public pages.




## Base template [#base-template]

Open a shared template such as `templates/base.html` and place the snippet before `</body>`.

```html
    <script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>
</body>
</html>
```

If different parts of the site use different base templates, add Talivia to each public base template.

Do not leave the placeholder. Replace YOUR\_WEBSITE\_ID with the value from Talivia Settings -> Tracking.

Deploy the template, visit a page, and confirm the first session in Talivia.
