Installation
Phoenix
Install Talivia in a Phoenix or Phoenix LiveView app.
Add Talivia to the shared root layout so the tracker loads across Phoenix pages.
Add the script
Open the root layout, often lib/my_app_web/components/layouts/root.html.heex, and place the snippet before </body>.
<%= @inner_content %>
<script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID"></script>
</body>Replace the website ID. Copy it from Talivia Settings -> Tracking.
Open the Phoenix site and check Talivia for the new visit.