# SolidStart (https://talivia.com/zh-CN/docs/installation-guides/solid-start)



将 Talivia 加入根文档，使其在整个应用中加载。




## 添加脚本 [#添加脚本]

打开定义 `StartServer`、`Scripts` 或文档 body 的根入口文件，然后在 body 结束之前放入代码片段。

```tsx
import { Scripts } from '@solidjs/start';

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

请替换网站编号。

使用 Talivia“设置 → 数据追踪”中的值。

运行应用并打开页面，以验证首次会话。
