# Flask (https://talivia.com/docs/installation-guides/flask)



Add Talivia to the base Jinja template used by your pages.




## Add the script [#add-the-script]

Open your base template, often `templates/base.html`, and place the snippet before `</body>`.

```html
{% block content %}{% endblock %}
<script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>
</body>
```

Replace the website ID. Use the value from Talivia Settings -> Tracking.

Run Flask, open a page, and confirm Talivia receives a session.
