# Phoenix (https://talivia.com/docs/installation-guides/phoenix)



Add Talivia to the shared root layout so the tracker loads across Phoenix pages.




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

Open the root layout, often `lib/my_app_web/components/layouts/root.html.heex`, and place the snippet before `</body>`.

```html
<%= @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.
