Installation
SolidStart
Install Talivia in a SolidStart app.
Add Talivia to the root document so it loads across the app.
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 entry file where StartServer, Scripts, or the document body is defined, then place the snippet before closing the body.
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>
);
}Replace the website ID. Use the value from Talivia Settings -> Tracking.
Run the app and open a page to verify the first session.