Google Analytics script component for NextJs to avoid recurrent setup in every build.
npm install nextgasGoogle Analytics script component for NextJs to avoid recurrent setup in every build.
How to install
```
npm i nextgas
How to use
Grab your measurement ID from the Google Analytics dashboard and plug it into NextGA's mID prop. Use in _app.tsx entrypoint file.
`jsx
// app.tsx
import '../styles/globals.css'
import type { AppProps } from 'next/app'
import { NextGA } from 'nextgas'
function MyApp({ Component, pageProps }: AppProps) {
return (
<>
} />
>
)
}
export default MyApp
``