Remix
To install Suppa in your Remix application:
- Open your
app/root.tsx
file. - Import the necessary Remix components and add the Suppa script to the
<head>
section:
import { Meta, Links, Scripts, LiveReload } from "@remix-run/react";
export default function App() {
return (
<html lang="en">
<head>
<Meta />
<Links />
<script
src="https://app.suppa.ai/integration/script.js"
data-api-key="YOUR_SUPPA_API_KEY"
/>
</head>
<body>
<Outlet />
<Scripts />
<LiveReload />
</body>
</html>
);
}