Installation
Flask
Install Talivia in a Flask app.
Add Talivia to the base Jinja template used by your pages.
Copy the complete snippet from Settings -> Tracking. The examples below focus on framework placement. Keep generated attributes such as
data-domain in the installed snippet. See Tracker configuration for every option and Subdomain tracking when the same visitor moves between subdomains.Add the script
Open your base template, often templates/base.html, and place the snippet before </body>.
{% 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.