In this setup we will setup Google Analytics with Remix.
Open this example on CodeSandbox:
This example shows how to use Google analytics with Remix.
First you have to get the Google analytics ID and add that key in the .env.example file.
Check app/root.tsx where page tracking code is added. For tracking events check app/routes/contact.tsx file.