If you don’t have a Remix.js app yet, you can quickly create one with the following command:

npx create-remix@latest
1

Install

Now install the safesight package

  npm install safesight
2

Intializing Safesight

Add the provider in your apps root root, with your previously created websites token.

/app/root.ts
import { Analytics } from 'safesight/react'
 
export default function App() {
	return (
		<html lang='en'>
			<body>
				<Analytics token={'yourWebsiteID'} />
			</body>
		</html>
	)
}
3

Running your Remix app

  bun run dev
4

Thats it!

Go to your web console and you will see debug logs showing you some page views logs. And once deployed data will come in!

5

Deploy and wait for data