# Remix (https://talivia.com/docs/installation-guides/remix)



Use the root document so the tracker is included on every route.




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

Open `app/root.tsx` and place the snippet before Remix's `Scripts` component.

```tsx
import { Links, Meta, Outlet, Scripts, ScrollRestoration } from '@remix-run/react';

export default function App() {
  return (
    <html lang="en">
      <head>
        <Meta />
        <Links />
      </head>
      <body>
        <Outlet />
        <ScrollRestoration />
        <script defer src="https://talivia.com/script.js" data-website-id="YOUR_WEBSITE_ID" />
        <Scripts />
      </body>
    </html>
  );
}
```

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

Open a route and verify that Talivia receives a session.
