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.
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 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.