# Qwik (https://talivia.com/docs/installation-guides/qwik)



Use the root layout so the tracker is included on every public page.




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

Open the root layout or document file and add the Talivia snippet near the end of the body.

```tsx
export default component$(() => {
  return (
    <>
      <Slot />
      <script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID" />
    </>
  );
});
```

Replace the website ID. Copy it from Talivia Settings -> Tracking for the Qwik site.

Open a route and confirm the visit in Talivia.
