Frameworks (Advanced)
Remix
Install VisitorLead in Remix's root.tsx.
In app/root.tsx, add the script inside <head>:
import { Links, Meta, Scripts, ScrollRestoration, Outlet } from "@remix-run/react";
export default function App() {
return (
<html lang="en">
<head>
<Meta />
<Links />
<script
id="visitorleadjs"
async
src="https://ingest.visitorlead.tech/vl.js"
data-code="YOUR_SITE_CODE"
/>
</head>
<body>
<Outlet />
<ScrollRestoration />
<Scripts />
</body>
</html>
);
}Verify
Run remix dev and visit your site. VisitorLead → Sessions should record the session.