Install guide
Drop the tracker into your root layout using next/script — works for both App Router and Pages Router.
// app/layout.tsx (App Router)
import Script from "next/script";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
{children}
<Script
src="https://api.sourcetrace.xyz/t.js?key=YOUR_API_KEY"
strategy="afterInteractive"
/>
</body>
</html>
);
}Replace YOUR_API_KEY with the key from Settings → Sites.
VS Code with app/layout.tsx showing the Script tag.
Onboarding wizard showing the green Verify install state.