Skip to content

Latest commit

 

History

History
 
 

google-analytics

Google Analytics Example

In this setup we will setup Google Analytics with Remix.

Preview

Open this example on CodeSandbox:

Open in CodeSandbox

Example

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.

Related Links

Google Analytics